Solved

Problem Calling a C DLL in VB 6.0

Posted on 2004-08-24
6
201 Views
Last Modified: 2010-05-02
Hi,
I have created a DLL in C Language. I have used VC++ as my IDE and Winodws XP Home edition as my Operating System.

I have copied the DLL into my VB Project folder and have referenced the DLL in my VB Projct. TIll this point of my project there is no problem(I believe).
When I tried to invoke the DLL the following message occurs:

Error 53: File not found CallVB.dll

Can some help me resolve this problem.


Regards,
Shivakumar Thota
0
Comment
Question by:shivakumarthota
6 Comments
 
LVL 8

Expert Comment

by:bukko
ID: 11881879
Is CallVB.dll the dll you wrote in VC++?

Is it an ActiveX dll? (ATL COM)
Did you register it with regsvr32?

bukko
0
 
LVL 8

Expert Comment

by:bukko
ID: 11881889
Can you call you dll in debug mode in VC++?
0
 
LVL 3

Accepted Solution

by:
nichia earned 25 total points
ID: 11881924
See this article:

"PRB: Error 53 'File Not Found' When Calling a DLL Function"

http://support.microsoft.com/default.aspx?scid=kb;en-us;178489
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 7

Expert Comment

by:Burbble
ID: 11882895
Just to clear things up: It is displaying this error because the path you specified for the DLL is not correct. If you just use the DLL's filename, like "CallVB.dll", then it must be registered on the system first using regsvr32. Otherwise, you need to specify the exact path, like "C:\My App\CallVB.dll".

-Burbble
0
 
LVL 8

Expert Comment

by:mladenovicz
ID: 11882903
Copy DLL to the System32 folder, or any other folder that is within PATH
0
 
LVL 18

Expert Comment

by:JR2003
ID: 11883274
As mladenovicz says you need it on the path. If you don't have it on the path you must have it in the working directory. When you start VB from the start menu the current directory is C:\program files\visual studio\vb98
You can create a shortcut as shown in this thread:

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_21091343.html
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…

777 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