[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

VB6 setup error(Can't load DLL)

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

650 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