Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I created a dll using win32 in visuval studio 2005(vs2005) and I created a application to use that dll in WIN32 using vs2005. When i add that dll in my project and try to run I am getting an error saying that an header file that is in dll is not found. How to resolve the error.?Please let me know?Thanks in advance.
Posted

Hi,
I think this article would help you Step by Step: Calling C++ DLLs from VC++ and VB - Part 1[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-May-11 15:37pm    
It looks like Hans knows how to explain it. A 5.
--SA
hakz.code 27-May-11 0:07am    
Yup,its really simple to go through..!
I suspect that you are actually getting this message - perhaps you could add the detail to your question - in the compile of your project, rather than when you run it. The header file that is required is the one you created as part of the source code for your DLL, so you need to add it to the project in order that the compiler understands how to compile any function calls to the routines in the DLL.
 
Share this answer
 
Comments
Albert Holguin 26-May-11 10:07am    
right on, 5
Sergey Alexandrovich Kryukov 26-May-11 15:36pm    
Agree, a 5.
--SA
There is no such thing as a header file IN a dll... the header file should be in your source and should specify the prototypes or class descriptions of items in dll.
 
Share this answer
 
Comments
Richard MacCutchan 26-May-11 13:57pm    
Exactly right.
Sergey Alexandrovich Kryukov 26-May-11 15:36pm    
LOL. A 5.
--SA
hakz.code 27-May-11 0:08am    
Yes! My 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900