rename it to GetModuleHandleA
Hello everybody! I'm trying to make a menu hack, but i have this errors when I try to compile
(Edited error code)
Someone can helps me?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 ==========
Thanks a lot.
Last edited by Capevaldo; 11-10-2010 at 12:23 PM.
• CABR Minion:
Feb, 12th 2011 - Aug, 12th 2011
• Full CA Section Minion:
July, 06th 2011 - Aug, 12th 2011
rename it to GetModuleHandleA
watch that you declared everything and included all folders that needed for it from sdk
Thanks Cosmos
Capevaldo (11-10-2010),fvestrgenrl (11-10-2010),Nubzgetkillz (11-10-2010),whit (11-10-2010)
Go to Project, Properties, General, in Character Set change for Multi-byte
Capevaldo (11-10-2010)
Way to spoonfeed guys
Mr. Magicman gave the right response
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