Solved

VB6 setup error(Can't load DLL)

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Wordpress New Install 3 77
MsgBox 2 48
MS Access Search and Replace Using VBA 6 58
VB6 ListBox Question 4 34
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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

863 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

26 Experts available now in Live!

Get 1:1 Help Now