PDA

Click to See Complete Forum and Search --> : LAN Server Dll Usage on Client Machine


sherryq
Jan 7th, 2001, 04:24 PM
Hi Everyone,

The Scenario:

A LAN of 2 pc's both running WIN 2K. PC "A" & "B"

The Problem:

On PC "A" I develped a DLL which performs a simple math calculation, while compling this DLL I checked the REMOTE SERVER option so that I could use this dll remotely and also MTS-Enabled it. Then I developed a VB application which uses this DLL. Everything is working fine on my PC. Mind you that I use the CreateObject("Prog.Class","My Server") to provide refrence to the DLL.

Now we take the application to the other PC , PC "B", on the lan and use it. Error is offcourse , DLL not in Local Registery...Then I registred it manually using regsvr32.exe. After this the application was working fine.

One way to handel this is to use the shell command to run regsvr32 to register the DLL.

But I dont like it, what If this was a real LAN in an office and the DLL was moved from one server to the other ? Is their a better approach ?

I am looking for a proffesional way here ?

Wating....

shaherayr
sherryq5@hotmail.com
http://www.thequreshi.com

tumblingdown
Jan 8th, 2001, 09:20 AM
But I dont like it, what If this was a real LAN in an office and the DLL was moved from one server to the other ? Is their a better approach ?

...then presumabley you would have some kind of production release procedure, and this would take care of registration issues.


td.

Clunietp
Jan 8th, 2001, 10:50 PM
Register the DLL with COM+ on computer A. Export the 'application', which should generate the MSI (install) file which you then run on computer B. You may then use CreateObject (don't specify a server name) on computer B to activate the component on computer A


Tom