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. CreateWindowEx (in Live Messenger process, vista OS) crash, why?
Hello,

In several Vista OS, I use CreateWindowEx to create a window in Live Messenger's process, it crashed. I have checked, all parameters are right. And if I moved CreateWindowEx out of Live Messenger's process, no problems. And also, in most Vista computers and all other win98/2000/xp computers, no problems, only on several Vista computer, it crash. Who had encountered this problems?
09-24-2007 09:32 AM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: CreateWindowEx (in Live Messenger process, vista OS) crash, why?
Could you post the code snippet where you call the function?
[Image: spartaafk.png]
09-24-2007 10:27 PM
Profile PM Web Find Quote Report
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
carlz
New Member
*


Posts: 13
Joined: Dec 2004
O.P. Huh?  RE: CreateWindowEx (in Live Messenger process, vista OS) crash, why?
No one meet this problems?
09-27-2007 01:04 AM
Profile E-Mail PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
35 / Male / Flag
Joined: Jan 2006
RE: CreateWindowEx (in Live Messenger process, vista OS) crash, why?
quote:
Originally posted by carlz
No one meet this problems?
A lot of people program scripts these days for Messenger Plus! Live and so Plug-Ins just don't get developed.  It has been many months since someone has even posted in the plug-ins section of the forums.  Because of this it is somewhat unlikely that someone is going to be of help to you unfortunately and that is mostly because we never deal with plug-ins ourselves or we haven't developed a plugin for about 18 months to 2 years.  I hope someone does help you out however.
[Image: markee.png]
09-27-2007 01:11 AM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: CreateWindowEx (in Live Messenger process, vista OS) crash, why?
Is that code MFC? If so, I'm afraid I can't help.
[Image: spartaafk.png]
09-27-2007 07:58 PM
Profile PM Web Find Quote Report
effection
Full Member
***

Destroy The Runner

Posts: 135
Reputation: 4
– / Male / Flag
Joined: Sep 2006
RE: CreateWindowEx (in Live Messenger process, vista OS) crash, why?
if its MFC for a start i dont think you can use MFC DLL for SetWindowsHook i read it somewhere
09-27-2007 08:40 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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