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

DCOM with VB6 for Dummie

Status
Not open for further replies.

mrsurrender

Programmer
Apr 27, 2001
38
DE
Hi,

I successfully implemented bigger COM connections, but I got real trouble, understanding what to do, if it should run remote.

What I will try here first, is implement a tiny Hello World with two pc just to learn how it works.

I develop under Win98SE and with VB6. So I write both the client and the server software on this machine!

The server app: It will be an ActiveX EXE and I have checked "Upgrade ActiveX Controls" in the Project Properties, whatever that means. I then make the EXE. I get the xxx.VBR and xxx.TLB files.

The client app: (Now the trouble starts.) When I try to build the client application, there has to be a reference. So I start the self-registring server app on the Win98-developing system. Okay. No problem, the COM-connection is fine and works.

But what to do, if I now want to transport this server app to a Win2000 server? How to get rid of the connection to my local server? What to do on the Win2000 server side? What to do on the Win98 client? (I have DCOM95.EXE installed and I can run DCOMCNFG.EXE) The Win2000 server is just a test machine, so I set all rights to "Everyone can do anything". At least I hope that I did it right, but I'm quiet sure ;-)

Boy, I think I am a little blocked in mind, so I need a step by step education. Please be patient and pleeease help!...

Thank You in advance!

BTW: I will have to do this in future with C++ also, but I think, I will first try to understand the easier way using VB6.

Siegfried.
 
I think you would have to un-register the server proxy on your machine first.

Chip H.
 
Yes, that's what I did.

But now I always get either a application crash or an error 462 (Server is not available). It is, I can ping on it, and I can view files in an explorer window. Think I need to know more about the rights in Win2000.

What do I have to set in the Win98 (client) dcomcnfg and what in Win2000 (server) dcomcnfg? I guess that's where some trouble lies.

Thank You!

Siegfried.
 
Just to tell you:

I got through it, but not with VB6. I took Delphi. It was soooo easy. It really took me about 15 minutes, including the editing of the test application!

The IDE automatically added the TLB that I can now read in clear text (so I got everything about the methods and properties of the public interface on one sheet!), compiled everything. On any client I just registered the server using CLIREG32 *.VBR and copied only ONE file, the Delphi-EXE. No dll hell, no setup.exe, no errors, no changes or hidden changes or add on files to the Windows system. Simple, logical and easy: Delphi.

Siegfried.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top