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
Solved

Problem Calling a C DLL in VB 6.0

Posted on 2004-08-24
6
202 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
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.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

828 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