March 28th, 2013 10:01 AM
A couple of suggestions...
You've prompted the user to enter 10 digits. The input string myChoice will be (should be) 10 characters long. You only need to input that once, unless there are not 10...
March 26th, 2013 01:45 PM
I don't understand why this is happening then. Project->Add Existing Item doesn't have any options, and I find nothing in the project properties or tools menus that would affect this.
Edit: It...
March 22nd, 2013 01:30 PM
I have a directory of class files that will be used by multiple projects and solutions. When I add a file from that directory to one of my projects Visual Studio copies it into the project directory....
March 14th, 2013 11:46 AM
Thank you Arjay - the DEF file worked.
March 12th, 2013 02:48 PM
OK.. Is there some way to rebuild the dll such that the names aren't mangled?
March 12th, 2013 01:04 PM
I have a 3rd party dll written in VC6.0 that I want to use within a C# application. When I call one of the exported functions I get a can't find entry point exception.
The dll is called diodrv.dll...
January 28th, 2013 08:44 AM
Thank you very much. The MSDN explanation for this error is more cryptic than the error message.
January 25th, 2013 01:19 PM
I have a new managed C++ Form project (my first) and if I try to declare a StreamReader object I get an error that I don't understand:
private: System::Void Form1_Load(System::Object^ sender,...
November 29th, 2012 12:30 PM
That worked. Thanks very much.
November 29th, 2012 08:36 AM
Thanks very much for the reply. Oddly, the TrimEnd method doesn't seem to work. The string remains unchanged (the copy, that is) still retaining the '\0' characters on the end. I'm pretty sure I have...
November 28th, 2012 04:45 PM
I'm a C/C++ guy trying to learn C# and I'm converting some of my C code into C# for learning.
In the following snippet of code, the char array temp[] gets initialized as nulls '\0'. If I turn the...
April 13th, 2012 08:31 AM
Paul -
Thank you very much for taking the time to do that. But now I'm even more baffled, because that project throws an exception on startup on both of my two development PCs.
Very odd.
April 12th, 2012 01:32 PM
Thanks. Zip attached. I had to delete the .ncb file to stay within size limits.
April 12th, 2012 08:04 AM
The point where the debugger breaks is within ntdll (I get the disassembly window) in one case, and in _mtinitblocks() (mlock.c) in the other case. I'm trying to understand if there's something wrong...
April 11th, 2012 03:34 PM
If I create a new project in VS2008 and run it with all the debugger's exception breaks enabled I get a first chance exception thrown when the application starts up. The project is as created by the...
April 11th, 2012 08:14 AM
April 10th, 2012 10:51 AM
April 10th, 2012 10:40 AM
Thanks Alex. I had forgotten that I can put a constructor in the struct. That's what I'll do.
April 10th, 2012 08:50 AM
This is some code I've inherited in a project that I need to modify - the original was done in Borland C++ 3.1 in the DOS days. I don't use memset, so I'm wondering if this is valid. The point of it...
March 26th, 2012 09:19 AM
From what I can Google, that CODBCFieldInfo has something to do with CRecordset. There is a global object (a class of mine) that includes CDatabase and CRecordset objects, but the exception occurs...
March 22nd, 2012 02:15 PM
I have an MFC application that I'm attempting to debug and I've enabled all the exception breakpoint options. I get an exception before it executes any of my code. I've put a breakpoint at the...
March 22nd, 2012 01:29 PM
The way I normally do this is to create a modeless dialog box with the "Please Wait" message, and display it before doing the task. Then when the task is finished, terminate the modeless dialog.
February 24th, 2012 03:33 PM
Thanks guys.
The VS wizard created OnDestroy for me and the comments say to put my code after the call to CDialog::OnDestroy(). Is the window still valid at that point, or should I avoid writing...