GetCursorPos yields unresolved extern
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: GetCursorPos yields unresolved extern

  1. #1
    Join Date
    Jul 2009
    Posts
    33

    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

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,353

    Re: GetCursorPos yields unresolved extern

    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center