Visual c++ 2010 gives me following errors:
error LNK2028: unresolved token (0A000331) "extern "C" int __stdcall SetCursorPos(int,int)" (?SetCursorPos@@$$J18YGHHH@Z) referenced in function "unsigned long __stdcall Mis(void *)" (?Mis@@$$FYGKPAX@Z)
and
error LNK2019: unresolved external symbol "extern "C" int __stdcall SetCursorPos(int,int)" (?SetCursorPos@@$$J18YGHHH@Z) referenced in function "unsigned long __stdcall Mis(void *)" (?Mis@@$$FYGKPAX@Z)
This function works properly in CodeBlocks and Dev-C++
Help, please?![]()
Last edited by Dusannn; 06-21-2012 at 12:49 PM.
Your project isn't linking the required Windows import library, so go to project properties, linker, input and in there remove the $(NoInherit) from the Additional Dependencies(and if you use VS2010 then put "user32.lib" in that box)
Ah we-a blaze the fyah, make it bun dem!
Problem solved, imported user32.lib!