Solved

VB6 setup error(Can't load DLL)

Posted on 1998-12-22
5
363 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 50 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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

724 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