PDA

Click to See Complete Forum and Search --> : Calling a method in the DLL on remote MTS machine


Srinimusuku
Sep 28th, 2001, 11:56 AM
Hi,
I have a dll ("XXX.dll") on MTS server running on a remote NT machine (The machine name is "ZZZ").
I have to code a VB app on my machine which calls the method ("XXX.YYY") in the DLL ("XXX") of the remote MTS machine("ZZZ").

Can come body tell me the steps to follow for doing this.
Thanks in Advance,
Srini

jim mcnamara
Sep 28th, 2001, 02:51 PM
' XXX has to an ActiveX dll, and registered as a server on ZZZ
Dim o as Object
Set o = CreateObject("XXX","ZZZ")
o.YYY (argument list...)

Set o = Nothing

shirtster
Oct 1st, 2001, 08:42 AM
You can early bind instead to improve performance (a lot). Include a reference to the MTS DLL in your VB project, and when you come to deploy don't forget to export the client stub for the MTS package from the MTS server and include this stub (it'll be a small-ish EXE) in your VB Setup package. Run this on the client machines to register the remote DLL and your early binding should continue to work.