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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot register DCOM server

Status
Not open for further replies.

tuanvietle

Programmer
Sep 2, 2002
2
JP
Hi there,

I'm a newbie in DCOM, I wrote a simple DCOM server with VC++:
+Create an MFC app
+Add a simple ATL object
+add a simple method on that ATL object

I've also built a simple client to access my server.

Then I built the server then run SimpleServer /regserver on my PC (where I developed the server). Client can access SimpleServer.

Then I copied SimpleServer.exe to another PC, run SimpleServer /regserver. I also copy the client, run the client on the new PC but I kept getting error code 0x80004002 (E_NOINTERFACE).

Can anyone please point out what went wrong.
Thanx a lot.

 
You have to register your Proxy-Stub-dll (SimpleServerps.dll) on the Client-Computer (run regsvr32 SimpleServerps.dll).

Welcome
Urs
 
Thank you, however my DCOM server is not dll, it's .exe

Anyway, I already found out the reason, there are a couple of register keys (interface and typelib) which I have to import manually.

/regserver doesn't create all necessary keys, maybe because I built my server in Debug mode.

 
I know that your dcom-server is not a dll. You have to generate a dll with your make-file in your project-folder! In the dll are the interfaces from the dcom-server... I wrote Proxy-Stub-DLL (means that you have the same DLL on the Server- and on the Client-Site)...

Sorry my bad english;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top