Using objects created on remote machine

I have 2 Windows95 machines on a network, and Visual Studio 6 Enterprise Edition. I may not have DCOM on both machines. I'm trying to create a VB6 component on one machine and use it from another with CreateObject. Can I do this? If so, how? (I checked the Remote Server Files option when I compiled on the remote machine) And when I run my client program, I get "Class not registered on local machine."
Who is Participating?
kianweiConnect With a Mentor Commented:
Hi, may be u can try to do some setting in the registry manually in the client machine.

; Note: APPID_AuctionServer can have the same value as CLSID_AuctionServer

or u can visit the following site.
norris1Author Commented:
Edited text of question.
You must have DCOM on both...
The new generation of project management tools

With’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

I think you heard about MTS (Microsoft Transaction Server), using this you can do this. You have to install MTS Server on a IIS 4.0 Server on Windows NT Server. You can create Packages for Components (ActiveX Dll/exe) then by deploying this package into some other client machine you can access this component.
norris1Author Commented:
I do know about MTS. I don't have MTS here. I thought it could be done with Windows 95 and DCOM and VB Enterprise.
Yes you can, but you have to set up DCOM correctly on all machines, and create a setup for your server ActiveX .exe's remote files and run this setup on your clients so they all know what server to look at.
norris1Author Commented:
I read over that Web site, and I think I did the right thing. I installed DCOM for Win95 on both machines. I installed the DLL. CreateObject("xxx.yyy") gets the object on the client, but runs the copy on the client machine. When I try CreateObject("xxx.yyy","remoteserver"), it doesn't work. I'm putting the computer name as it's used on the network in the second argument. I also set up an entry in the registry according to what it seemed to say on the website. Maybe if somebody has this set up, they could post the registry entry.

Eventually, though, I'm going to set up Windows NT here, but that could be 6 months from now, and I'd like to try some things out.

Thanks for the help.
All Courses

From novice to tech pro — start learning today.