Solved

VB4-16  - Manually register DAO2516

Posted on 1998-09-21
2
336 Views
Last Modified: 2013-12-25
I do not want to use the VB setup wizard to create my install sets, but I need to know how to register (under Win3.1 and 95) the DAO object.  REGSVR doesn't seem to work on DAO2516.DLL.  Any ideas?
0
Comment
Question by:peter_vc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
edjohn earned 50 total points
ID: 1496335
This may work. Iit depends on why you are avoiding the setup wizard, since this is the same method the setup wizard uses.

The first line has to be in the declarations section and the other two in a function.

Ed

Private Declare Function DLLSelfRegister Lib "STKIT416.DLL" (ByVal lpDllName As String) As Integer

dim x

x = DLLSelfRegister("DAO2516.DLL")
0
 
LVL 1

Author Comment

by:peter_vc
ID: 1496336
I was a little concerned at having to distribute yet another DLL, but it's only 5K so thats no big deal.

Thanks

0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question