Strange Debuggin Thing
-
hello, I've some strange problems while debugging, I've one solution with 4 project,2 are exe files, the other 2 are dll. My problem is I can't see the value of variables while debugging outside the main file. for example
case WM_INITDIALOG: SetWindowPos(hWnd, NULL, wi.rcWindow.left, wi.rcWindow.bottom, 300, 250, NULL); ShowWindow(hWnd,SW_NORMAL); //hParser=LoadLibrary("parser.dll"); if(hParser == NULL) { MessageBox(hwndMain,"LoadLibrary failed on parser.dll", "Error", MB_ICONERROR|MB_OK); break; } if(!AnalizeMMC(hWnd,NULL)) { MessageBox(hwndMain,"Unable to process multi-media content file", "Error", MB_ICONERROR|MB_OK); break; }
when I step into AnalizeMMC, that's defined into another .cpp filebool AnalizeMMC(HWND hWndMMC,tag *ind) { char temp[30]={0}; WIN32_FIND_DATA *wfd = new WIN32_FIND_DATA(); HANDLE hFirstFile=INVALID_HANDLE_VALUE; HWND hList=NULL; FILE *fd=NULL; char test[50]={0}; hList=GetDlgItem(hWndMMC,IDC_LIST1); hFirstFile=FindFirstFile("*.mmc",wfd); if (hFirstFile == INVALID_HANDLE_VALUE) return false; .....
I can't see the value of temp,wfd,hFirstFile and so on... I receive wfd CXX0017: Error: symbol "wfd" not found .......why this happens???, how to fix it????? the same happens if I refer to content of another project. Thanks Paolo -
hello, I've some strange problems while debugging, I've one solution with 4 project,2 are exe files, the other 2 are dll. My problem is I can't see the value of variables while debugging outside the main file. for example
case WM_INITDIALOG: SetWindowPos(hWnd, NULL, wi.rcWindow.left, wi.rcWindow.bottom, 300, 250, NULL); ShowWindow(hWnd,SW_NORMAL); //hParser=LoadLibrary("parser.dll"); if(hParser == NULL) { MessageBox(hwndMain,"LoadLibrary failed on parser.dll", "Error", MB_ICONERROR|MB_OK); break; } if(!AnalizeMMC(hWnd,NULL)) { MessageBox(hwndMain,"Unable to process multi-media content file", "Error", MB_ICONERROR|MB_OK); break; }
when I step into AnalizeMMC, that's defined into another .cpp filebool AnalizeMMC(HWND hWndMMC,tag *ind) { char temp[30]={0}; WIN32_FIND_DATA *wfd = new WIN32_FIND_DATA(); HANDLE hFirstFile=INVALID_HANDLE_VALUE; HWND hList=NULL; FILE *fd=NULL; char test[50]={0}; hList=GetDlgItem(hWndMMC,IDC_LIST1); hFirstFile=FindFirstFile("*.mmc",wfd); if (hFirstFile == INVALID_HANDLE_VALUE) return false; .....
I can't see the value of temp,wfd,hFirstFile and so on... I receive wfd CXX0017: Error: symbol "wfd" not found .......why this happens???, how to fix it????? the same happens if I refer to content of another project. Thanks PaoloHave you tried just debugging the DLL in question? That is set the DLL to active project / startup project then when prompted for the executable choise the appropriate executable that uses the DLL. Ant. I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)