-
Unresolved Externals
Hello
I'm having probs linking a dll with my app, it keep son giving me unresolved externals:
Compiling...
authenticate32.cpp
Linking...
authenticate32.obj : error LNK2001: unresolved external symbol __chkesp
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
Debug/authenticate32.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
authenticate32.exe - 3 error(s), 0 warning(s)
I don't know where to begin to solve them, I was hoping some one could give me guidance or advice on where to start.
Heres a link to the project files:
http://www.uea.ac.uk/~u9945296/authenticate32.zip
its a main project with the dll in the sub folder.
cheers for any advice
Andy
-
It doesn't include the CRT libraries. Unselect "Link -> Ignore all default libraries."
On your code: are you porting a 16-bit app?
FAR and PASCAL are only used for compatibility. You should either use STDCALL like with WinMain and WndProc or CALLBACK.
hPrevInstance is always NULL in Win32. No exception.
Although it's exactly the same, you usually use UINT as second parameter to wndprocs and dlgprocs.