Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 10th, 2003, 10:57 AM
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
Default Distribution of ActiveX DLL

Hi,

I am writing an ActiveX DLL to be used from with a spreadsheet.

I want to distribute the DLL to customers (along with the spreadsheet) so that when they open the spreadsheet, it references the DLL.

In development of the DLL, I am using VB6. When I compile the DLL, VB registers it on my PC, so that it is ready for use by VBA in Excel.

However, if I just send the DLL to someone else, how do they go about registering it on *their* PC so that they can use it too?

Is there a quick and painless way for them to effectively "install" the DLL? If so, please can you tell me what it is?

Many thanks.

James

Reply With Quote
  #2 (permalink)  
Old September 10th, 2003, 11:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Cardiff, , United Kingdom.
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, tell them they need to copy the DLL to the WINDOWS\SYSTEM (or WINDOWS\SYSTEM32 folder in NT/2K/XP) and click Start, Run and type REGSVR32 YourDllName.DLL and then click OK

Regards
Owain Williams
Reply With Quote
  #3 (permalink)  
Old September 10th, 2003, 11:03 AM
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
Default

Great. Thanks, Owain.

Do you know is there is a utility that would automate that process for them?

If so, where do I get it? Or, do I need to write it? If so, how? (!)

Thanks.

James

Reply With Quote
  #4 (permalink)  
Old September 10th, 2003, 11:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Cardiff, , United Kingdom.
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use the Application Setup Wizard bundled with VB6 and just add the DLL to the install set. Note that you may need to include the Visual Basic run-time DLL's for it to run correctly on their system. The VB run-time components they need are:

MSVBVM50.DLL
StdOle2.TLB
OleAut32.DLL
OlePro32.DLL
AsycFilt.DLL
Ctl3D32.DLL
ComCat.DLL

And any other dependencies you may need (e.g ADO, DAO, other components etc.)

Regards
Owain Williams
Reply With Quote
  #5 (permalink)  
Old September 10th, 2003, 11:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Cardiff, , United Kingdom.
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You may also be able to download a free copy of Install Shield (from Download.com perhaps?) The VB Setup Wizard is a bit crap if you ask me. I use Wise Installer, but you have to pay for that.

Regards
Owain Williams
Reply With Quote
  #6 (permalink)  
Old September 10th, 2003, 11:11 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there.. you can try making a bat for him.. and telling him to run it..

or writte a program that only register it (but it would be more complicated...)

HTH...


Gonzalo Bianchi
Reply With Quote
  #7 (permalink)  
Old September 10th, 2003, 11:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Cardiff, , United Kingdom.
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you can download a trial version of InstallShield from their web site: http://www.installshield.com/downloads/

Regards
Owain Williams
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advantages /Disadvantages of ActiveX DLL & ActiveX priyank Beginning VB 6 6 February 19th, 2007 11:34 AM
ActiveX DLL Joann Beginning VB 6 6 January 25th, 2007 08:50 PM
Using ActiveX DLL in ASP Andraw Classic ASP Basics 13 January 22nd, 2007 06:07 AM
ActiveX Exe and Dll Vasudevan VB How-To 1 September 26th, 2003 07:48 AM
Create an ActiveX DLL .... miglou VS.NET 2002/2003 1 September 23rd, 2003 08:43 AM



All times are GMT -4. The time now is 05:15 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.