Solved

Newbie: using an API.  "Dll not found"

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops 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.
Suggested Courses

636 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