Results 1 to 8 of 8
  1. #1
    Capevaldo's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    CWBeats
    Posts
    5,518
    Reputation
    242
    Thanks
    1,145
    My Mood
    Drunk

    Compile errors - Whit's combined base v2

    Hello everybody! I'm trying to make a menu hack, but i have this errors when I try to compile

    (Edited error code)
    Code:
    ------ Build started: Project: BRForce menu, Configuration: Debug Win32 ------
    Compiling...
    Base.cpp
    c:\documents and settings\administrador\desktop\jogos\ca ~ bases\combined base v2\cabase\base.cpp(55) : error C2664: 'D3DXCreateFontW' : cannot convert parameter 11 from 'const char [6]' to 'LPCWSTR'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\documents and settings\administrador\desktop\jogos\ca ~ bases\combined base v2\cabase\base.cpp(58) : error C2664: 'D3DXCreateFontW' : cannot convert parameter 11 from 'const char [12]' to 'LPCWSTR'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    DirectX.cpp
    c:\documents and settings\administrador\desktop\jogos\ca ~ bases\combined base v2\cabase\directx.cpp(23) : error C2664: 'D3DXCreateFontW' : cannot convert parameter 11 from 'const char [6]' to 'LPCWSTR'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\documents and settings\administrador\desktop\jogos\ca ~ bases\combined base v2\cabase\directx.cpp(35) : error C2664: 'D3DXCreateFontW' : cannot convert parameter 11 from 'const char [12]' to 'LPCWSTR'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\documents and settings\administrador\desktop\jogos\ca ~ bases\combined base v2\cabase\directx.cpp(55) : error C2664: 'ID3DXFont::DrawTextW' : cannot convert parameter 2 from 'char [1024]' to 'LPCWSTR'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    Menu.cpp
    c:\documents and settings\administrador\desktop\jogos\ca ~ bases\combined base v2\cabase\menu.cpp(75) : error C2664: 'ID3DXFont::DrawTextW' : cannot convert parameter 2 from 'char *' to 'LPCWSTR'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\documents and settings\administrador\desktop\jogos\ca ~ bases\combined base v2\cabase\menu.cpp(78) : error C2664: 'ID3DXFont::DrawTextW' : cannot convert parameter 2 from 'char *' to 'LPCWSTR'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\documents and settings\administrador\desktop\jogos\ca ~ bases\combined base v2\cabase\menu.cpp(80) : error C2664: 'ID3DXFont::DrawTextW' : cannot convert parameter 2 from 'char *' to 'LPCWSTR'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    Generating Code...
    Build log was saved at "file://c:\Documents and Settings\Administrador\Meus documentos\Visual Studio 2008\Projects\BRForce menu\BRForce menu\Debug\BuildLog.htm"
    BRForce menu - 8 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    Someone can helps me?

    Thanks a lot.
    Last edited by Capevaldo; 11-10-2010 at 12:23 PM.

  2. #2
    Solify's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Frankfurt, Germany
    Posts
    2,291
    Reputation
    143
    Thanks
    2,473
    My Mood
    Aggressive
    rename it to GetModuleHandleA

  3. #3
    Sydney's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Germany...
    Posts
    1,358
    Reputation
    37
    Thanks
    1,144
    My Mood
    Amused
    watch that you declared everything and included all folders that needed for it from sdk

    Thanks Cosmos


  4. #4
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,103
    Reputation
    16
    Thanks
    648
    My Mood
    Cold
    Change the characterset to multibyte

  5. The Following 4 Users Say Thank You to Mr.Magicman For This Useful Post:

    Capevaldo (11-10-2010),fvestrgenrl (11-10-2010),Nubzgetkillz (11-10-2010),whit (11-10-2010)

  6. #5
    Capevaldo's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    CWBeats
    Posts
    5,518
    Reputation
    242
    Thanks
    1,145
    My Mood
    Drunk
    Quote Originally Posted by Mr.Magicman View Post
    Change the characterset to multibyte
    Sorry, but how I do it? Is to change Unicode to Multibyte? I think i have do it a few months ago, but i can't remember =X

  7. #6
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,549
    My Mood
    Aggressive
    Go to Project, Properties, General, in Character Set change for Multi-byte

  8. The Following User Says Thank You to LionelMessi10 For This Useful Post:

    Capevaldo (11-10-2010)

  9. #7
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,253
    Way to spoonfeed guys
    Mr. Magicman gave the right response

  10. #8
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Quote Originally Posted by whit View Post
    Way to spoonfeed guys
    Mr. Magicman gave the right response
    Lol, Whit said spoonfeed

    Member since September 25, 2010

    Current Objectives:
    • Graduate college with a degree in Computer Science
    • Find a decent job in the Computer Science Field
    • Learn more programming languages

    Looking for Elo Boosting Job - League of Legends
    Looking for Bronze -> Gold Jobs


    Skype: whatthedream

Similar Threads

  1. Whits v3 combined base
    By justiniscool5 in forum Combat Arms Coding Help & Discussion
    Replies: 12
    Last Post: 06-20-2011, 09:03 AM
  2. Whit's combined base v2
    By nucks in forum Combat Arms Coding Help & Discussion
    Replies: 13
    Last Post: 05-23-2011, 09:33 AM
  3. [Release] Whit's Combined Base v2 [Updated]
    By Dead 4 Real in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 131
    Last Post: 02-16-2011, 10:43 PM
  4. [HELP]Whit's Combined Base 2 [Updated]
    By dllbase in forum Combat Arms Coding Help & Discussion
    Replies: 23
    Last Post: 02-11-2011, 09:27 PM
  5. [HELP]Compile Error - Whit's combined base
    By CanYouDoIt in forum Combat Arms Coding Help & Discussion
    Replies: 6
    Last Post: 11-17-2010, 03:34 PM