Results 1 to 4 of 4
  1. #1
    Dusannn's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0

    Question SetCursorPos() Help!

    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.

  2. #2
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,750
    Reputation
    66
    Thanks
    14,533
    My Mood
    Angelic
    Quote Originally Posted by Dusannn View Post
    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?
    I've already seen this errors... but I don't rememeber right now what causes them... cause you paste the code here?

    PS: Paste it between [code ] [/code ] tags


    CoD Minion from 09/19/2012 to 01/10/2013

  3. #3
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,321
    My Mood
    Cheeky
    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!

  4. #4
    Dusannn's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    Problem solved, imported user32.lib!

Similar Threads

  1. [Help Request] Combat arms Vid help
    By djw111 in forum Combat Arms Help
    Replies: 4
    Last Post: 12-24-2011, 05:06 PM
  2. [Help Request] AFK Bot [help]
    By fet in forum Combat Arms Help
    Replies: 7
    Last Post: 04-28-2011, 03:17 AM
  3. [Help Request] Injector Admin help
    By asdfgas in forum Combat Arms Help
    Replies: 4
    Last Post: 04-27-2011, 06:12 PM
  4. [Help Request] Ajuda / Help
    By - Battery' in forum Combat Arms BR Coding Help
    Replies: 3
    Last Post: 04-22-2011, 07:15 PM
  5. [Help Request] Help my!
    By Windowns7 in forum Combat Arms BR Coding Help
    Replies: 2
    Last Post: 04-18-2011, 01:41 PM

Tags for this Thread