Results 1 to 5 of 5
  1. #1
    franpanpan's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    7
    My Mood
    Aggressive

    Exclamation [Help] ERRO Source base menu combined


    Hello I need help with this error if anyone can help me



    ------ Build started: Project: CaBase, Configuration: Debug Win32 ------
    Compiling...
    Base.cpp
    c:\documents and settings\administrador\desktop\hans & gellins base combined\cabase\base.cpp(111) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\documents and settings\administrador\desktop\hans & gellins base combined\cabase\base.cpp(112) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [13]' to 'LPCWSTR'
    Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    c:\documents and settings\administrador\desktop\hans & gellins base combined\cabase\base.cpp(113) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' 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\hans & gellins base combined\cabase\directx.cpp(26) : error C2664: 'ID3DXFont:rawTextW' : 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\hans & gellins base combined\cabase\menu.cpp(78) : error C2664: 'ID3DXFont:rawTextW' : 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\hans & gellins base combined\cabase\menu.cpp(81) : error C2664: 'ID3DXFont:rawTextW' : 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\hans & gellins base combined\cabase\menu.cpp(83) : error C2664: 'ID3DXFont:rawTextW' : 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\Desktop\Hans & Gellins Base Combined\CaBase\Debug\BuildLog.htm"
    CaBase - 7 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  2. #2
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    This is very simple.

    Change the Character Set Unicode for Multi-byte

  3. #3
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    You have to change to multibyte character set or make the getmodule a singlebyte instead of w multibyte.

  4. #4
    GodHack2's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    644
    Reputation
    38
    Thanks
    762
    My Mood
    Amused
    in other words change this GetModuleHandleW to this GetModuleHandleA
    and this DrawTextW to this DrawTextA





    beat this bitches ^^^^^^^

    Current Stats : Bored :/


    Respect list :
    Crash !
    Gordon'
    Markoj

  5. #5
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    (Project Properties, like all others have stated)

Similar Threads

  1. [HELP] erros na base.
    By rapha15br in forum Combat Arms Brazil Help
    Replies: 3
    Last Post: 04-28-2011, 03:00 PM
  2. help Hans & Gellins Base Combined
    By yoyoman4567 in forum Combat Arms Coding Help & Discussion
    Replies: 9
    Last Post: 02-21-2011, 01:34 PM
  3. [Help] [HELP] Base Menu D3D9
    By mestrelost in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 6
    Last Post: 02-02-2011, 08:25 AM
  4. [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
  5. Help on TOPBLAST's menu base
    By projektx in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 31
    Last Post: 08-07-2010, 01:52 AM