Click here to Skip to main content
15,919,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHooking keyboard in Windows98? Pin
Vladimir Georgiev23-Jan-02 9:25
Vladimir Georgiev23-Jan-02 9:25 
AnswerRe: Hooking keyboard in Windows98? Pin
moliate23-Jan-02 15:10
moliate23-Jan-02 15:10 
AnswerRe: Hooking keyboard in Windows98? Pin
Mazdak23-Jan-02 19:04
Mazdak23-Jan-02 19:04 
QuestionHow can I Update DLLs Resources on Win9x Pin
CMFC6.0VS.NETUser23-Jan-02 8:18
CMFC6.0VS.NETUser23-Jan-02 8:18 
AnswerRe: How can I Update DLLs Resources on Win9x Pin
Joaquín M López Muñoz23-Jan-02 10:12
Joaquín M López Muñoz23-Jan-02 10:12 
GeneralRe: How can I Update DLLs Resources on Win9x Pin
CMFC6.0VS.NETUser23-Jan-02 13:01
CMFC6.0VS.NETUser23-Jan-02 13:01 
GeneralRe: How can I Update DLLs Resources on Win9x Pin
CMFC6.0VS.NETUser27-Jan-02 16:57
CMFC6.0VS.NETUser27-Jan-02 16:57 
GeneralWhat's going on? Please help me Pin
User 665823-Jan-02 8:01
User 665823-Jan-02 8:01 
Hi
I'm currently developing a dialog-based app.
Everything worked fine until some minutes ago.
Now I compiled my app once more, and suddenly it crashes during startup...the dialog isn't even shown Confused | :confused:

Here's the part of code where my app seems to crash (it's MFC internal code as you can see):

int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
	LPTSTR lpCmdLine, int nCmdShow)
{
	ASSERT(hPrevInstance == NULL);

	int nReturnCode = -1;
	CWinThread* pThread = AfxGetThread();
	CWinApp* pApp = AfxGetApp();

	// AFX internal initialization
	if (!AfxWinInit(hInstance, hPrevInstance, lpCmdLine, nCmdShow))
		goto InitFailure;

	// App global initializations (rare)
	if (pApp != NULL && !pApp->InitApplication())
		goto InitFailure;

	// Perform specific initializations
	if (!pThread->InitInstance())
	{
		if (pThread->m_pMainWnd != NULL)
		{
			TRACE0("Warning: Destroying non-NULL m_pMainWnd\n");
			pThread->m_pMainWnd->DestroyWindow();   <---------------------------- here it happens
		}
		nReturnCode = pThread->ExitInstance();
		goto InitFailure;
	}
	nReturnCode = pThread->Run();


Any help is greatly appreciated

regards

modified 12-Sep-18 21:01pm.

GeneralRe: What's going on? Please help me Pin
Le centriste23-Jan-02 8:58
Le centriste23-Jan-02 8:58 
GeneralRe: What's going on? Please help me Pin
User 665823-Jan-02 9:38
User 665823-Jan-02 9:38 
GeneralRe: What's going on? Please help me Pin
Joaquín M López Muñoz23-Jan-02 10:04
Joaquín M López Muñoz23-Jan-02 10:04 
GeneralRe: What's going on? Please help me Pin
User 665823-Jan-02 10:11
User 665823-Jan-02 10:11 
GeneralRe: What's going on? Please help me Pin
Ravi Bhavnani23-Jan-02 10:16
professionalRavi Bhavnani23-Jan-02 10:16 
GeneralRe: What's going on? Please help me Pin
User 665823-Jan-02 10:41
User 665823-Jan-02 10:41 
GeneralRe: What's going on? Please help me Pin
Le centriste23-Jan-02 10:57
Le centriste23-Jan-02 10:57 
GeneralRe: What's going on? Please help me Pin
User 665823-Jan-02 11:00
User 665823-Jan-02 11:00 
GeneralPROBLEM SOLVED!!! Pin
User 665823-Jan-02 11:06
User 665823-Jan-02 11:06 
GeneralProblem with WM_NOTIFY from a ClistViewCtrl Pin
uo200023-Jan-02 7:29
uo200023-Jan-02 7:29 
Generalwhatif (ptr = malloc ( nSize ) ) == NULL Pin
Mike Doner23-Jan-02 6:25
Mike Doner23-Jan-02 6:25 
GeneralRe: whatif (ptr = malloc ( nSize ) ) == NULL Pin
Joaquín M López Muñoz23-Jan-02 10:24
Joaquín M López Muñoz23-Jan-02 10:24 
GeneralDouble Buffering vs. Private DC's Pin
Mark Lenz23-Jan-02 4:56
Mark Lenz23-Jan-02 4:56 
GeneralRe: Double Buffering vs. Private DC's Pin
Mark Lenz23-Jan-02 7:58
Mark Lenz23-Jan-02 7:58 
GeneralRe: Double Buffering vs. Private DC's Pin
Michael Dunn23-Jan-02 8:15
sitebuilderMichael Dunn23-Jan-02 8:15 
GeneralRe: Double Buffering vs. Private DC's Pin
Mark Lenz23-Jan-02 10:16
Mark Lenz23-Jan-02 10:16 
GeneralRe: Double Buffering vs. Private DC's Pin
Shog923-Jan-02 15:28
sitebuilderShog923-Jan-02 15:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.