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

x
?
Solved

Problem Calling a C DLL in VB 6.0

Posted on 2004-08-24
6
Medium Priority
?
207 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
[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
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 75 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…
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