Solved

Newbie: using an API.  "Dll not found"

Posted on 2007-03-21
3
194 Views
Last Modified: 2010-04-15
Platform Windows XP
Language: C

I'm doing some testing with a custom api.  I'm rather new to C especially under windows.   I have my code that I am testing complete and the exe is compiled and linked with the api .lib.  My question is: Why am I getting a message that says "The application has failed to start because <dllname> was not found. Reinstalling the application might fix this problem.  Do I have to do a LoadLibrary and typedef and define every single function?
0
Comment
Question by:TristinColby
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 18767354
No, all you have to make sure is that the DLL your application is either in your application's directory or in one of these listed under http://msdn2.microsoft.com/en-US/library/ms682586.aspx ("Dynamic-Link Library Search Order")
0
 
LVL 1

Author Comment

by:TristinColby
ID: 18767636
Its in the directory and I have the safelib check off. Still same error.
0
 
LVL 86

Expert Comment

by:jkr
ID: 18767647
Then probably a DLL that this API DLL depends on is missing. Try to find which one using the Dependency Walker from www.dependencywalker.com
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

813 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

17 Experts available now in Live!

Get 1:1 Help Now