Solved

Newbie: using an API.  "Dll not found"

Posted on 2007-03-21
3
192 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand opening and writing to 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.

746 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

13 Experts available now in Live!

Get 1:1 Help Now