Solved

Newbie: using an API.  "Dll not found"

Posted on 2007-03-21
3
197 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
[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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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 and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.

739 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