Hello all,
My DLL component works fine, but I'm having trouble running it under the default surrogate "dllhost.exe".
I've tried to run the DLL under the default surrogate by making these changes:
Changes to registry: Add AppID pointer, Fill up AppID
[HKEY_CLASSES_ROOT\CLSID\{10000002-0000-0000-0000-000000000001}]
"AppID"="{10000002-0000-0000-0000-000000000001}"
[HKEY_CLASSES_ROOT\AppID\{10000002-0000-0000-0000-000000000001}]
@="TextLoggerDLL developed by Santhosh"
"DllSurrogate"=""
Changes to Client:
I just asked CoCreateInstance() to load component as a CLSCTX_LOCAL_SERVER
With these changes my client successfully loads the componend DLL. I can see the dllhost.exe process running with the Task Manager.
However, my client is unable to find the Interface I request, it says 'No such interface supported', when I query for an interface I know my component supports. (Note: It can find this interface and works fine when the Dll is not implemented as a surrogate)
I have been following instruction from the book 'Inside COM+ Base services' by Eddon & Eddon. I dont see where I've made a mistake.
If your interested, I'll send u my code.
Please help, TYI,
Santhosh
My DLL component works fine, but I'm having trouble running it under the default surrogate "dllhost.exe".
I've tried to run the DLL under the default surrogate by making these changes:
Changes to registry: Add AppID pointer, Fill up AppID
[HKEY_CLASSES_ROOT\CLSID\{10000002-0000-0000-0000-000000000001}]
"AppID"="{10000002-0000-0000-0000-000000000001}"
[HKEY_CLASSES_ROOT\AppID\{10000002-0000-0000-0000-000000000001}]
@="TextLoggerDLL developed by Santhosh"
"DllSurrogate"=""
Changes to Client:
I just asked CoCreateInstance() to load component as a CLSCTX_LOCAL_SERVER
With these changes my client successfully loads the componend DLL. I can see the dllhost.exe process running with the Task Manager.
However, my client is unable to find the Interface I request, it says 'No such interface supported', when I query for an interface I know my component supports. (Note: It can find this interface and works fine when the Dll is not implemented as a surrogate)
I have been following instruction from the book 'Inside COM+ Base services' by Eddon & Eddon. I dont see where I've made a mistake.
If your interested, I'll send u my code.
Please help, TYI,
Santhosh