Rob In der Maur
May 12th, 1999, 04:35 PM
I'm trying to wrap an in-process COM DLL using Visual C++ and MFC. I've created a class using the classwizard from the DLL (the only thing available to me, no TLB or anything else), and the classwizard neatly created 4 new classes from the DLL, which correlate with the classes that should be available from the documentation.
I've added AfxOleInit to the instantiation of the application and then try to run the following code:
// begin of code
ISession ceSession;
BOOL bSuccess = ceSession.CreateDispatch ("ComHpceWl.Session");
if (!bSuccess) AfxMessageBox("Error...");
// now I'm calling any of the methods of the ceSession object
ceSession.SetSource("http://localhost/adminflow/cgi/bin/afwls.cgi")
// end of example code
But any of the methods I call returns back "Member not found". The CreateDispatch call returns nozero (which is ok), but I can't seem to access any of the methods of my wrapped COM DLL.
Looking in the MSKB, all the references to this problem, don't really apply to this situation.
I have the suspicious feeling I'm overlooking something. And b.t.w the DLL is working like a charm in VB!
Any help urgently appreciated.
Regards,
Rob
I've added AfxOleInit to the instantiation of the application and then try to run the following code:
// begin of code
ISession ceSession;
BOOL bSuccess = ceSession.CreateDispatch ("ComHpceWl.Session");
if (!bSuccess) AfxMessageBox("Error...");
// now I'm calling any of the methods of the ceSession object
ceSession.SetSource("http://localhost/adminflow/cgi/bin/afwls.cgi")
// end of example code
But any of the methods I call returns back "Member not found". The CreateDispatch call returns nozero (which is ok), but I can't seem to access any of the methods of my wrapped COM DLL.
Looking in the MSKB, all the references to this problem, don't really apply to this situation.
I have the suspicious feeling I'm overlooking something. And b.t.w the DLL is working like a charm in VB!
Any help urgently appreciated.
Regards,
Rob