Solved

Newbie: using an API.  "Dll not found"

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

Technology Partners: 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…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

749 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