MSVC 2003 break point problem
I have run across a problem trying to use break points in MSVS 2003 to debug my code. I don't see anything wrong with my code and the debugger says MBRet = 7 and it also says IDNO = 7. Anyway when I try to step through my code these lines are skipped:
Just for kicks heres is the function I am using the return value of:
if (MBRet == IDNO)
WC.bFileNeedsSaved == false;
I have tried 'cleaning' the solution but no change. I really don't see anything wrong with this code!
int AskAboutSave (HWND hwnd)
int iReturn = NULL;
iReturn = MessageBox (NULL, "Save current changes?", szAppName, MB_YESNOCANCEL);
if(iReturn == IDYES)
SendMessage(hwnd, WM_COMMAND, ID_FRAME_SAVE, 0);
return iReturn ;
Here is the code where Visual Studio just deletes my break points and skips the code.
Anyone ever seen anything like this?