MFC application does not open up
-
Hi, After changing alot of code in my MFC application, it is no longer opens up. Compile has no errors or warnings. It seems that the program DOES load, but exit immediatly. Any idea where to look for? Any idea where i can put a break point to help me catch it? How to define an entry point?
-
Hi, After changing alot of code in my MFC application, it is no longer opens up. Compile has no errors or warnings. It seems that the program DOES load, but exit immediatly. Any idea where to look for? Any idea where i can put a break point to help me catch it? How to define an entry point?
If you have a dialog based app you could look into the InitInstance method and add a breakpoint where you call the DoModal method. If the problem is inside the dialog class then begin looking into OnInitDialog method. Hope it helps, Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
-
If you have a dialog based app you could look into the InitInstance method and add a breakpoint where you call the DoModal method. If the problem is inside the dialog class then begin looking into OnInitDialog method. Hope it helps, Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
-
I've put a breakpoint in that function. Does not reach there.... debuger did not stop there.
Does it reach the constructor of the app? Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
-
Hi, After changing alot of code in my MFC application, it is no longer opens up. Compile has no errors or warnings. It seems that the program DOES load, but exit immediatly. Any idea where to look for? Any idea where i can put a break point to help me catch it? How to define an entry point?
press F10 u will go to extern "C" int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { // call shared/exported WinMain return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow); } no press F10 again and then F11 to go to the defination of afxwinmain check out the afxwinmain function in "Winmain.cpp" by pressing "F10" find out from which function call the program exit int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) Vikas Amin Embin Technology Bombay vikas.amin@embin.com
-
Does it reach the constructor of the app? Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
-
press F10 u will go to extern "C" int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { // call shared/exported WinMain return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow); } no press F10 again and then F11 to go to the defination of afxwinmain check out the afxwinmain function in "Winmain.cpp" by pressing "F10" find out from which function call the program exit int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) Vikas Amin Embin Technology Bombay vikas.amin@embin.com
-
Hi, After changing alot of code in my MFC application, it is no longer opens up. Compile has no errors or warnings. It seems that the program DOES load, but exit immediatly. Any idea where to look for? Any idea where i can put a break point to help me catch it? How to define an entry point?
-
Found my error. A simple bug in some other lib i used. But, i could find it after i added breakpoints to ALL the functions used in the solution. Is there any simple way to debug an application from the first instruction?
Adding a breakpoint at the declaration of the global app object? CYourApp theApp; ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
-
Found my error. A simple bug in some other lib i used. But, i could find it after i added breakpoints to ALL the functions used in the solution. Is there any simple way to debug an application from the first instruction?
Sorry No idea regarding that Vikas Amin Embin Technology Bombay vikas.amin@embin.com