Well again I don't have a clue.![]()
I'm trying to export some functions from a dll into my app, but I am getting these errors:
key32.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __stdcall InitHooksDll(struct HWND__ *,int)" (__imp_?InitHooksDll@@YGHPAUHWND__@@H@Z)
key32.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __stdcall PaintHooksDll(struct HDC__ *)" (__imp_?PaintHooksDll@@YGHPAUHDC__@@@Z)
key32.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __stdcall InstallFilter(int,int)" (__imp_?InstallFilter@@YGHHH@Z)
could somebody explain why i get them and how to solve them?! I'm pretty lost to tell the truth! and the help provided by msdn and the likes is not the greatest for a beginer like myself!
I've enclosed my code, you have to run it from the d:\development\key32\ directory as there are includes with path statements!! (is there anyway round this type of include statement? i.e. #include "d:\development....\key32.h"
Cheers in advance
Andy![]()




Reply With Quote