looking for panacea....how invoke method of Server in a Container
-
About Server Application ......................... The server is a full server with automation support. Server Applcation name is "TestServer" About Container Application Container Application name is "CONTAIN" I am embedding server application in container by using following code CCONTAINCntrItem* pCntrItem; CCONTAINDoc* pDoc = GetDocument(); pCntrItem= new CCONTAINCntrItem(pDoc); CLSID clsid; CLSIDFromProgID(L"TestServer.document",&clsid); pCntrItem->CreateNewItem(clsid); pCntrItem->DoVerb(OLEIVERB_SHOW, this); It works well. Now What is the problem? ---------------- i want to provide some information to the "TestServer" before embedding. so how i provide this information from "CONTAIN" to "TestServer". One way is that "TestServer" should have a method like SendData(CString strData), but how i invoke this method in "CONTAIN".