Thread: Error

Results 1 to 5 of 5
  1. #1
    Splity's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    Error

    Quando eu compilo o projeto, da esse error ai o: como tira?


    1>.\Menu.cpp(63) : error C2664: 'ID3DXFont:rawTextW' : cannot convert parameter 2 from 'CHAR *' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>.\Menu.cpp(66) : error C2664: 'ID3DXFont:rawTextW' : cannot convert parameter 2 from 'CHAR *' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>.\Menu.cpp(68) : error C2664: 'ID3DXFont:rawTextW' : cannot convert parameter 2 from 'CHAR *' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>DirectX.cpp
    1>.\DirectX.cpp(35) : error C2664: 'ID3DXFont:rawTextW' : cannot convert parameter 2 from 'CHAR [1024]' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>.\DirectX.cpp(63) : error C2664: 'D3DXCreateFontW' : cannot convert parameter 11 from 'const char [14]' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>detours.cpp
    1>Base.cpp
    1>.\Base.cpp(97) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>.\Base.cpp(98) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [13]' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>.\Base.cpp(99) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

  2. #2
    Coder.DiasII's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Location
    In My World
    Posts
    1,515
    Reputation
    156
    Thanks
    6,469
    Quote Originally Posted by Splity View Post
    Quando eu compilo o projeto, da esse error ai o: como tira?


    1>.\Menu.cpp(63) : error C2664: 'ID3DXFont:rawTextW' : cannot convert parameter 2 from 'CHAR *' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>.\Menu.cpp(66) : error C2664: 'ID3DXFont:rawTextW' : cannot convert parameter 2 from 'CHAR *' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>.\Menu.cpp(68) : error C2664: 'ID3DXFont:rawTextW' : cannot convert parameter 2 from 'CHAR *' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>DirectX.cpp
    1>.\DirectX.cpp(35) : error C2664: 'ID3DXFont:rawTextW' : cannot convert parameter 2 from 'CHAR [1024]' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>.\DirectX.cpp(63) : error C2664: 'D3DXCreateFontW' : cannot convert parameter 11 from 'const char [14]' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>detours.cpp
    1>Base.cpp
    1>.\Base.cpp(97) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>.\Base.cpp(98) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [13]' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>.\Base.cpp(99) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' to 'LPCWSTR'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

    pode manda TV para min por PM
    para que possa Olhar?
    • Registered - February 03, 2012
    • Contributor since August 05, 2014



    CombatArms Brasil


    PointBlank Brasil


  3. #3
    FR1GHT's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    Comendo Peru Pato Frango Burguer e Bebendo Whisky
    Posts
    1,633
    Reputation
    68
    Thanks
    987
    My Mood
    Yeehaw
    Project Properties -> Character Set -> DE Use Unicode Character Set PARA Use Multi-Byte Character Set



  4. #4
    6ixth's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    3,032
    Reputation
    661
    Thanks
    19,950
    (LPCWSTR)......

  5. #5
    XarutoUsoCrack's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    CFAL Honra & Glória Server
    Posts
    1,087
    Reputation
    51
    Thanks
    2,546
    My Mood
    Relaxed
    (JAILSON_MENDES)

Similar Threads

  1. Hellbreath Int Error?
    By RebornAce in forum General
    Replies: 10
    Last Post: 03-06-2009, 09:04 PM
  2. Gunz Error Message
    By A7X Oblivian in forum Gunz General
    Replies: 2
    Last Post: 02-08-2006, 02:00 PM
  3. Connection error
    By DrKaOs in forum WarRock - International Hacks
    Replies: 6
    Last Post: 02-05-2006, 08:37 PM
  4. K Warrock error :(
    By i eat trees in forum WarRock - International Hacks
    Replies: 2
    Last Post: 01-26-2006, 08:40 PM