Hi All,
I have two com server .exes let say COM1 and COM2 which are respectively implementing two interfaces say I1 and I2. Now i am invoking the components using
one after another. When i say
it returns S_OK, but it returns class not registered for
. Again here i am registering the first Com but not the second one as the flow is like when the server .exe is up with the help of the first CoCreateInstanc e call then Com2 should be registered by the COM SCM.
Notes:
- This is working for "launching user" context using dcomcnfig in Windows XP, Windows 2008 R2 and Windows 7.
- This is working for "this user" context using dcomcnfig in Windows XP 32 bit and not for Windows 2008 R2 and Windows 7(64 bit).
Any kind of help will be appreciated.
Thank in Advance,
Lauren
I have two com server .exes let say COM1 and COM2 which are respectively implementing two interfaces say I1 and I2. Now i am invoking the components using
Code:
CoCreateInstance(...)
Code:
CoCreateInstance(Com1,..)
Code:
CoCreateInstance(Com2,..)
Notes:
- This is working for "launching user" context using dcomcnfig in Windows XP, Windows 2008 R2 and Windows 7.
- This is working for "this user" context using dcomcnfig in Windows XP 32 bit and not for Windows 2008 R2 and Windows 7(64 bit).
Any kind of help will be appreciated.
Thank in Advance,
Lauren