I guess you have to 'export' the function:extern (Windows) export LRESULT LowLevelKeyboardProc(int code, WPARAMwParam, LPARAM lParam)and include EXPORTS LowLevelKeyboardProc in the .DEF file
Thanks, I changed that. Also, I changed LoadLibraryW( ) to LoadLibraryA( ) in the main program and now it works (kinda). I feel stupid now, although I still don't get why it wouldn't work with LoadLibraryW.