error sending message

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Fedrick (anonymous_at_discussions.microsoft.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 04:11:07 -0800

Hello everyone,

I have just completed a Doc/View application under debugging option and it was running fine until I compiled it under Release option. I encountered the error 0x00000076 and it seems to have come from the SendMessage command (or some subroutine in the function.) Does anyone know why this is happening?

The code goes something like this

CMainFrame *pframe = (CMainFrame *)AfxGetApp()->m_pMainWnd;
pframe->SendMessage(WM_MYMESSAGE);

and the error occurs in the SendMessage.
And I am testing both versions with the same file.

Thank you!
Fedrick