Thread: Can't Compile

Results 1 to 8 of 8
  1. #1
    HeA1's Avatar
    Join Date
    Jan 2017
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0

    Exclamation Can't Compile

    Trying to make my own cheat bassed off of de_stroyer, I stumbled across the error:
    Error C2664 'int wcscmp(const wchar_t *,const wchar_t *)': cannot convert argument 1 from 'CHAR [260]' to 'const wchar_t *'

    I assume that the error is from this line of code:
    if (!wcscmp(ProcEntry.szExeFile, wszName))

    I don't know what to fix though, I think it is something with ProcEntry. Does anyone know how to fix this?
    Last edited by DarknzNet; 02-04-2017 at 03:13 PM.

  2. #2
    DarknzNet's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    4,042
    Reputation
    563
    Thanks
    15,728
    Set Character Set to "Use Multi-Byte Character Set" in properties.
     
    Member since : 08-24-2015

    Premium Member since : 01-19-2016

    Contributor : 02-27-2016 - 11.09.2017

    League of Legends Minion since : 08-24-2016

    Counter Strike: Global Offensive Minion since : 12-29-2016

    Steam Minion since : 02-11-2017

    Resigned : 04-20-2017

  3. #3
    Threadstarter
    New Member
    HeA1's Avatar
    Join Date
    Jan 2017
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    Thank You!

  4. #4
    DarknzNet's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    4,042
    Reputation
    563
    Thanks
    15,728
    Quote Originally Posted by HeA1 View Post
    Thank You!
    Did it solve it?
     
    Member since : 08-24-2015

    Premium Member since : 01-19-2016

    Contributor : 02-27-2016 - 11.09.2017

    League of Legends Minion since : 08-24-2016

    Counter Strike: Global Offensive Minion since : 12-29-2016

    Steam Minion since : 02-11-2017

    Resigned : 04-20-2017

  5. #5
    Threadstarter
    New Member
    HeA1's Avatar
    Join Date
    Jan 2017
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    I'm not exactly sure how to do it... Just updated Visual Studio and it is a little different

    - - - Updated - - -

    It used to be under "Configuration Properties" > "General" but I don't see it there.

  6. #6
    DarknzNet's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    4,042
    Reputation
    563
    Thanks
    15,728
    Quote Originally Posted by HeA1 View Post
    I'm not exactly sure how to do it... Just updated Visual Studio and it is a little different

    - - - Updated - - -

    It used to be under "Configuration Properties" > "General" but I don't see it there.
    It should be here

     
    Member since : 08-24-2015

    Premium Member since : 01-19-2016

    Contributor : 02-27-2016 - 11.09.2017

    League of Legends Minion since : 08-24-2016

    Counter Strike: Global Offensive Minion since : 12-29-2016

    Steam Minion since : 02-11-2017

    Resigned : 04-20-2017

  7. #7
    Threadstarter
    New Member
    HeA1's Avatar
    Join Date
    Jan 2017
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    Ok, found it but it was already using Multi-Byte Character Set

    - - - Updated - - -

    Changed it to Unicode and it worked

  8. #8
    DarknzNet's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    4,042
    Reputation
    563
    Thanks
    15,728
    Alright. Solved & Closed.
     
    Member since : 08-24-2015

    Premium Member since : 01-19-2016

    Contributor : 02-27-2016 - 11.09.2017

    League of Legends Minion since : 08-24-2016

    Counter Strike: Global Offensive Minion since : 12-29-2016

    Steam Minion since : 02-11-2017

    Resigned : 04-20-2017

Similar Threads

  1. Can someone compile this?
    By ThatGamerBlue in forum C++/C Programming
    Replies: 7
    Last Post: 12-18-2016, 10:54 PM
  2. [Request] Can someone compile this good RCS for me please?
    By JEnergy in forum Counter-Strike 2 Coding & Resources
    Replies: 5
    Last Post: 03-25-2016, 01:13 PM
  3. [Help Request] Can someone compile this shit?
    By LI-NING in forum C++/C Programming
    Replies: 3
    Last Post: 04-24-2013, 01:19 PM
  4. Help Me! I can't compile my hack =/
    By Capevaldo in forum Combat Arms Coding Help & Discussion
    Replies: 10
    Last Post: 10-10-2010, 04:01 AM
  5. Can someone compile this
    By ajvpot in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 9
    Last Post: 02-21-2010, 04:24 AM