Whenever I attempt to use GetCursorPos() in a form I get the following error:
I'm using it as such: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 ^)"
POINT n;
GetCursorPos(&n);
just these 2 lines alone keep it from compiling.
Any Suggestions?
Thanks!
Regards,
- Mac