Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: use unregistered Mailbee.dll Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dcol
Newbie
Newbie


Joined: 26 June 2006
Location: Canada
Online Status: Offline
Posts: 1
Posted: 26 June 2006 at 12:42am | IP Logged Quote dcol

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 View dcol's Profile Search for other posts by dcol
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 26 June 2006 at 9:53am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide