Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to DLL Surrogate with dllhost.exe correctly

Status
Not open for further replies.

Suppandi

Programmer
Jul 17, 2001
15
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top