?
Solved

VB6 setup error(Can't load DLL)

Posted on 1998-12-22
5
Medium Priority
?
365 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
[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
5 Comments
 

Expert Comment

by:jmnolan
ID: 1451933
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
ID: 1451934
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
ID: 1451935
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 200 total points
ID: 1451936
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
ID: 1451937
Yep it worked beautifully. I sure appreciate the help. Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
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…
Suggested Courses

801 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