What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [C++] PlusWnd to MsgPlus

[C++] PlusWnd to MsgPlus
Author: Message:
enoid
New Member
*


Posts: 6
Joined: May 2011
O.P. [C++] PlusWnd to MsgPlus
I'm using a C++ DLL in which I create a PlusWnd and fill a ListViewControl with it as follows:
code:
extern "C" __declspec(dllexport) void __stdcall TestWindow()
{
    IDispatchPtr Wnd = pMsgPlus->CreateWnd("TestWindow.xml", "Form1");
    _IMPPlusWndPtr pPlusWnd;
    acquireInterfacePtr(Wnd, pPlusWnd);
    ...
    pPlusWnd->LstView_AddItem("LListView", "Testvalue");
    ...
}
Now I want to be able to control the PlusWnd with JScript from MsgPlus itself, but I can't seem to figure out how to return the PlusWnd Object to MsgPlus. I thought about sending the handle/ptr of the object, but I have no idea how to create a PlusWnd Object from it or use the handle/ptr at all.

An other idea would be to create the PlusWnd with MsgPlus and pass the Object/ptr/handle to the DLL, but... same story.
05-17-2011 02:52 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[C++] PlusWnd to MsgPlus - by enoid on 05-17-2011 at 02:52 PM
RE: [C++] PlusWnd to MsgPlus - by Eljay on 05-17-2011 at 04:03 PM
RE: [C++] PlusWnd to MsgPlus - by CookieRevised on 05-17-2011 at 05:10 PM
RE: [C++] PlusWnd to MsgPlus - by enoid on 05-17-2011 at 05:15 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