To call the DLL file on the MTS machine you need to do:
1. Export the package where the DLL file is located.
2. Inside the package there is a folder, "CLIENT"
3. Get the file *.EXE inside the client folder and run it on your local machine (this will register the DLL file so that your VP app can use)
4. Start your project, add a reference of the DLL to your project. Once you've done this you can use:
5. The DLL return will be run on which machine depends on the "Package Activation Type": Library or Server. If it is library, then it runs on your machine, if it is server then it runs on the server. You can find out about this be clicking on your package property, go to "Activation" tab.Code:Dim myvariable as MTransfer.SetMT Set myvariable = CreateObject("MTransfer.SetMT",servername)
Hope this helps,
TheBao




Reply With Quote