GetCursorPos yields unresolved extern
Whenever I attempt to use GetCursorPos() in a form I get the following error:
Code:
error LNK2028: unresolved token (0A000015) "extern "C" int __stdcall GetCursorPos(struct tagPOINT *)" (?GetCursorPos@@$$J14YGHPAUtagPOINT@@@Z) referenced in function "private: void __clrcall prog::Form1::savecoords_Click(class System::Object ^,class System::EventArgs ^)"
I'm using it as such:
POINT n;
GetCursorPos(&n);
just these 2 lines alone keep it from compiling.
Any Suggestions?
Thanks!
Regards,
- Mac
Re: GetCursorPos yields unresolved extern