Scott Northmore's Q&A profile
Visual C++ Linking problems about MFC and others
Dear all, I meet some linking problems as follows. I have added afxwin.h in the head file. Also, I use these libs: strmbasd.lib Quartz.lib strmiids.lib winmm.lib msvcrtd.lib Kernel32.lib oleaut32.lib vfw32.lib advapi32.lib version.lib largeint.lib user32.lib gdi32.lib comctl32.lib ole32.lib olepro32.lib uuid.lib WSOCK32.LIB log.lib Could you please give me some ideas about that thanks Linking... StdAfx.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE RemoteConnection.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE ServerConnection.obj : error LNK2001: unresolved external symbol __afx ...Show All
Visual C++ partial class in C++
because designer regenerate certain files, we can use 'partial class' in C#. Is there an equivalent method in visual C++ ...Show All
SQL Server Error 1418, fails to connect mirror server
I I use the mirroring wizard to config all these three servers(windows authorization is used), the error logs in primary server and mirror server are showed as below a) On primary server: Error: 1474, Severity: 16, State: 1 Database mirroring connection error 4 'An error occurred while receiving data: '10054(An existing connection was forcibly closed by the remote host.)'.' for 'TCP://mymirror.mydomain:5022' b) On mirror server: Database Mirroring login attempt by user 'NT AUTHORITY\ANONYMOUS LOGON.' failed with error: 'Connection handshake failed. The login 'NT AUTHORITY\ANONYMOUS LOGON' ...Show All
Windows Forms Current Cell Value
I want to be able to set a property when a currently edited cell value differs from the original value, does the datagridview cell object keep a copy of the original value anywhere If so, where I know this is a basic question with probably an obvious answer but I'm not getting anywhere and I just need an answer... ...Show All
Visual Studio Express Editions Is Visual C# 2005 Express v50630 avalaible for download?
I saw that there is a new version of Visual Studio 2005 Beta 2 with the framework 2.0.50630. I'd like to know if there's a C# express beta avalaible for download. Thanks in advance for your help luca - No. The 2.0.50630 version is the July CTP, and there was no version of Express released with the July CTP. There will however be an August CTP released in the next week, and an Express version of the August CTP will be available. See http://lab.msdn.microsoft.com/vs2005/get/ for a complete list of versions of Visual Studio and the most recent available build of that version. Thanks ...Show All
Visual Studio Express Editions 'NullReferenceException' with blank picture boxes
Whenever a picture box is blank (contains no image) and it is used in an If statement, it comes up with a NullReferenceException error. How can this be resolved Example 1 : Checks to see if the picture box is blank: For temp = 1 To 116 If Form1.Pile(temp).Image.Equals(Form1.Blank.Image) Then 'Form1.Blank is a picture box with no image. If Form1.Pile(temp) is blank , then the error pops up GoTo 200 End If Next temp How can I check to see if the picturebox specified is blank Example 2 : Picture box may or may not be blank, and it is checked to see if its image is the same as another one: If ...Show All
Microsoft ISV Community Center Forums VBA and Excel Deleting Worksheets without user interaction
Hi I have a VBA application in Excel where I want to delete quite a large number of worksheets in a workbook, and I want to do this without user interaction. Unfortunately the modal dialog pops up each time and waits until I click OK. I have looked but can't find a way of preventing the modal dialog from appearing. Does anybody have any ideas on how to solve this Many thanks in advance This example deletes Sheet3 in the active workbook without displaying the confirmation dialog box. Application.DisplayAlerts = False Worksheets("Sheet3"). Delete Application.DisplayAlerts = True ...Show All
Smart Device Development Deployment issue
Hi, i created a new C# Smart Device Pocket PC Windows Application Project. At that point, all i try to do is build and deploy. The build is successful. When i then try Build->Deploy, i select the "Pocket PC 2003 Emulator", and the the deployment begins (i assume). The emulator is launced with the Programs screen showing, and after a LONG while, it appears as though the deployment fails. this is what i see in the output window ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ========== Deploy: 0 succeeded, 1 failed, 0 skipped ========== how do i actually test that ...Show All
.NET Development How to send mail from a Windows Application??
I am attempting to write an application which will send a mail message with an attachment. Here's code: using System; using System.Drawing; using System.Data; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Web; using System.Web.Services; using System.Web.Mail; string filename = "c:\\stuff.xls" MailMessage send = new MailMessage(); send.To = " validmail@mymailserver.com "; send.From = "validmail@mymailserver.com"; send.Subject = "[MessageTitle]"; send.Priority = MailPriority.High; send.Body = "Please see attached"; MailAttachment MyAttachment = new MailAttachment(filen ...Show All
Windows Forms add items to databinded combo...
Hi, I have this combo box which is populated by a datasource. However, I want to add an item to this combobox, that is not in the datasource. I want to add a blank line as the first item of the combobox. But if I try to add it, when the combo is binded to the datasource, that blank line vanish, off course... ad if I try to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Effect who has no effect...
I try to use the BasicHLSL.fx in a program I thing I've done all I could to set it properly I've set up the device, load the effect, Set the Matrix and the Light value I Set the right technique, I call the Begin() and BeginPass I set up the World, View and Projection matrix and I render tiny.x in view The only stuff I don't do is the optimize portion and the adjecency part But it look like it's for performance only It compile and run without error And the effect has no effect at all... Tonight I'll check if any call produce an error But maybe I don't set some value right at some place When you call the Pass I presume that it use the shader m ...Show All
Smart Device Development Suddenly get "sql server does not exist or access denied" after connected for ages.
Hi all, I'm developing a PDA app using the compact framework. It connects to a SQL server 2000 database calling stored procedures to read data and update it etc.. It all works absolutely fine for 10 minutes or so - reading and writing lots of data. Then all at once I get the error "sql server does not exist or access denied". In my error handler I try to reconnect - but it seems once this error has happened it's not possible to reconnect. I don't know whether it makes a difference but the PDA is connecting to a database on my machine via a USB connection and the ActiveSync (the very latest version) program. Any ideas would be much appr ...Show All
Visual C++ Linking to static lib created with vc7.1
I am trying to do a program where i need to use some static lib's created with vc7.1( i am new to this) so what is best practice since i get linker errors that msvcp80.dll missing and if i exclude then i get 10 thousend other error. co how to use a static lib wich is compiled with vc 7.1 lib should i use 7.1 lib, and if howto set this up Or you can just contact the owner of the of the lib and get the sources if applicable. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Basic How to display login form...???
Can anyone help me out, this is urgent ... I have created a login form, how can i display the login form each time when windows start up I mean i want the form to be display once the windows logon form is displayed... or anyways i can replace the windows logon form with my login form p/s: sorry for my bad english explaination ... Thank you Grant, you really provided so much info for me.... i think i'll learn from there .... i'm still new in IT lines ... thanks for ur suggestion ... any further question i'll ask here, and i hope u won't mind to answer, would u ...Show All
Windows Forms index out of range must be non negative and be less than the number of items in a collection.
HELP! I have a bound grid with DataTable as DataSource. After performing a .Merge on the DataTable I get: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at System.Windows.Forms.DataGridViewRowCollection.SharedRow(Int32 rowIndex) at System.Windows.Forms.DataGridView.OnRowValidating(DataGridViewCell& We have just made a fix to some code that would generate this error. Can you file a bug with a simple repro project that I can try out to ensure that this is fixed thank ...Show All
