I'm use "Visual Studio 2005". I'm use C++ mfc (microsoft foundation class). I made a pointer bottom of the file, you can see it here.
==>end of test11Dlg.h file
extern Ctest11Dlg *g_MainDlg;
I use pointer "g_MainDlg" to call "postmessage()" , you can see it below.
I want to know the solution and reason to the cause.
I mentioned the output.
// for SIP
struct SIPEvent : public SIPCallbackEvent
virtual void onCommand(SIPCallbackCommand * command)
if (!g_MainDlg->PostMessage(WM_SIPEVENT, (WPARAM)command, 0))
command = NULL;