What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » CreateWindowEx (in Live Messenger process, vista OS) crash, why?

CreateWindowEx (in Live Messenger process, vista OS) crash, why?
Author: Message:
carlz
New Member
*


Posts: 13
Joined: Dec 2004
O.P. RE: CreateWindowEx (in Live Messenger process, vista OS) crash, why?
The code is like this:

class CAtMSNWnd :public CWindowImpl<CAtMSNWnd>
{
public :
    CAtMSNWnd(){};
    virtual ~CAtMSNWnd(){};   
public :
    BEGIN_MSG_MAP(CAtMSNWnd)
    MESSAGE_HANDLER(WM_COMMAND, OnCommand)
    END_MSG_MAP()
    LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
};

SetWindowsHookEx(WH_GETMESSAGE, (HOOKPROC)MSNMsgFilter, _Module.GetModuleInstance(), GetWindowThreadProcessId(hWnd,&pid) ); //hWnd is MSN main window
CAtMSNWnd* g_pMSNWnd = NULL;
LRESULT CALLBACK __stdcall MSNMsgFilter(int nCode ,WPARAM wParam,LPARAM lParam)
{
...//following code will only be enterred once
    g_pMSNWnd = new CAtMSNWnd();
    if(!g_pMSNWnd)
        return FALSE;
    g_pMSNWnd->Create(GetDesktopWindow(), rc, "my test window", WS_POPUP, 0, 0); //Crashed at this place
...
}


Is there any wrong?
09-25-2007 08:55 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
CreateWindowEx (in Live Messenger process, vista OS) crash, why? - by carlz on 09-24-2007 at 09:32 AM
RE: CreateWindowEx (in Live Messenger process, vista OS) crash, why? - by RaceProUK on 09-24-2007 at 10:27 PM
RE: CreateWindowEx (in Live Messenger process, vista OS) crash, why? - by carlz on 09-25-2007 at 08:55 AM
RE: CreateWindowEx (in Live Messenger process, vista OS) crash, why? - by carlz on 09-27-2007 at 01:04 AM
RE: CreateWindowEx (in Live Messenger process, vista OS) crash, why? - by markee on 09-27-2007 at 01:11 AM
RE: CreateWindowEx (in Live Messenger process, vista OS) crash, why? - by RaceProUK on 09-27-2007 at 07:58 PM
RE: CreateWindowEx (in Live Messenger process, vista OS) crash, why? - by effection on 09-27-2007 at 08:40 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On