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.