Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reg32srv

Status
Not open for further replies.

lixtifur36

Programmer
May 27, 2005
5
US
I am trying to make a setup program for my Access application that I have created. I need to register a dll file. How do I do that in Visual Basic 6? I

Thank you,

 
you can create a batch file in your program folder, and just run it like any other program:

If youre doing this in vba you can use FollowHyperlink. In vb6, you can just do a google search on that, its all over the place. =]

I've used this method when creating an install before we got Office Developer Edition at work <- which has a built in packager.

-Pete
 
or another method i just came across:

VB6Code
Code:
Private Declare Function RegisterTestDLL Lib "Test.Dll" _
    Alias "DllRegisterServer" () As Long

[green]'and then function call[/green]
Dim regTest as Long
regTest = RegisterTestDll()

as long as your dll file is in the same folder as your vb6 program, just replace "Test.Dll" with the name of your dll. Otherwise, you can use ChDrive and ChDir to get to the directory. =]

-Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top