Link to home
Start Free TrialLog in
Avatar of norris1
norris1

asked on

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."
Avatar of norris1
norris1

ASKER

Edited text of question.
You must have DCOM on both...
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.
Avatar of norris1

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of kianwei
kianwei

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of norris1

ASKER

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.