Solved

VB6 setup error(Can't load DLL)

Posted on 1998-12-22
5
356 Views
Last Modified: 2013-11-14
I am having a problem with VB6. I had a program written that uses a form with DB wizard for dipsplaying and updating Db info. After I added this form if I compile it and try to run the setup on some computers, i get this error"unable to call DLL register server..unable to load file c:\pgm files\common files\system\ole Db\msdadc.dll to register it. It only does it on some computers. Anyone got answers ?
0
Comment
Question by:bbekele
5 Comments
 

Expert Comment

by:jmnolan
Comment Utility
bbekele-

Yeah, with VB you get a lot of those types of errors. One way around it to to do this on the target machine:

From Start->Run or the DOS Prompt you can type:

regsvr32 <DllPath>

This works with most DLLs and OCXs. Hope that helps!

-Joe
0
 

Author Comment

by:bbekele
Comment Utility
I tried using that command on a couple of computers but I keep getting a "Load  Library "c:\...."failed" message.
0
 
LVL 3

Expert Comment

by:vmano
Comment Utility
to get rid off the LoadLibrary...failed error, Add the path of your DLL to the PATH variable in your Environment.
here is how to add it:
My Computer -> Environment tab -> scroll down the list till you find Path variable and in the Value add the path of your DLL at the end -> and the SET -> and then Apply.
Now try your regsvr32 <DLL Name>. this should take care of the LoadLibrary error.

vmano
0
 
LVL 3

Accepted Solution

by:
cognition earned 50 total points
Comment Utility
I just had exactly the same problem.

Look on the MS website for DCOM and MSDADC.

You will need to install DCOM for windows 95 on the Windows 95 machines. There is a download called dcom95.exe

Then you need to install the data access components. There is a separate download for this mdac_olp.exe.

I couldn't get the VB6 package and deployment wizard to register or include all the required files. It was only useful for some of the newer common controls and the applicatino itself.

You will be able to do the whole lot by using WISE or InstallShield.

Try just installing DCOM and then running your setup prgram again. That may also work.


0
 

Author Comment

by:bbekele
Comment Utility
Yep it worked beautifully. I sure appreciate the help. Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now