I have a com server running as an .exe . This COM server has two COM implementation. COM1 has inteface in it say "interface1" and COM2 has "interface2". In one of the methods of "interface1" say XYZ(IDispatch **pIDispatch), I instantiated the COM2 using "CoGetClassObject()" with "CLSCTX_LOCAL_SERVER" and created "interface2" and pass its "IDispatch" pointer through that method.
The client on the same machine uses COM Proxy DLL to communicate with COM Server. Client calls "interface1" method XYZ(), the function is executed successfully but the IDispatch returned is NULL to the client.
The machine is 32 bit.
Can someone tell why it is so, or what i am trying to get is not possible.