Hi,
Please suggest how to call a COM dll from another COM dll in VC++ 6.0?
I have a requirement in which I have to call a COM dll built in VC++ 9.0 in another COM dll which is VC++ 6.0.
Printable View
Hi,
Please suggest how to call a COM dll from another COM dll in VC++ 6.0?
I have a requirement in which I have to call a COM dll built in VC++ 9.0 in another COM dll which is VC++ 6.0.
hello,
in its simplest form
you will need to create the COM object inside the COM DLL.
say Client application initiate COM DLL one
by executing lines like
ICOMDLLPtr pCOMDLL (__uuidof(COMDLL));
pCOMDLL ->CallDiffrentCOMFunction()
in the CallDiffrentCOMFunction() in side the COM DLL
{
ICOMDLL2Ptr pCOMDLL2 (__uuidof(COMDLL2));
pCOMDLL2 ->CallAnotherFunction()
}
NOTE: however as your COM application gets complex, you will need to understand logic behind apartments, marshaling etc..
regard
deepak