I'm trying to import a function exported by a dll. So far:
Code:
#pragma comment(lib, "hookHop.lib")
extern "C" void hhPostMessageA(HWND Hwn, UINT Msg, WPARAM WParam, LPARAM LParam);
extern "C" LPARAM CursorPosTolParam(VOID);
The lib and dll are in my project directory and my dll is in my debug directory. I get the following linker error when I compile:
Code:
main.obj : error LNK2019: unresolved external symbol _hhPostMessageA referenced in function "void __cdecl SendKey(char)" (?SendKey@@YAXD@Z)
main.obj : error LNK2019: unresolved external symbol _CursorPosTolParam referenced in function "long __cdecl getCursPos(void)" (?getCursPos@@YAJXZ)
Help?