Author |
|
dcol Newbie
Joined: 26 June 2006 Location: Canada
Online Status: Offline Posts: 1
|
Posted: 26 June 2006 at 12:42am | IP Logged
|
|
|
I need to be able to run a VB6 created exe that uses Mailbee.dll from a network folder, but without Mailbee.dll being registered on the local machine. With most controls, simply putting them into the app.path folder will allow this, but not Mailbee.dll.
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 26 June 2006 at 9:53am | IP Logged
|
|
|
Since MailBee.dll is an ActiveX object, it should be registered on a local workstation. Nevertheless, if you do not want MailBee.dll being permanently registered on the local workstation, you may register MailBee.dll located in a network folder on the start of your application, for example in the Load event handler, as follows (in VB syntax):
Code:
Private Sub Form_Load()
Dim ProcID As Integer
' Register MailBee.dll at local workstation
ProcID = Shell("regsvr32 -s ""\\YOURSERVERNAME\MailBee Objects\MailBee.dll""")
End Sub
|
|
|
And unregister MailBee.dll on your application exit, for example in the Unload event handler:
Code:
Private Sub Form_Unload(Cancel As Integer)
Dim ProcID As Integer
' Unregister MailBee.dll at local workstation
ProcID = Shell("regsvr32 -s -u ""\\YOURSERVERNAME\MailBee Objects\MailBee.dll""")
End Sub
|
|
|
--
Best regards,
Alex
|
Back to Top |
|
|