Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › CrossFire Hacks & Cheats › CrossFire Hack Coding / Programming / Source Code › D3D Menu Error

D3D Menu Error

Posts 1–13 of 13 · Page 1 of 1
TE
TeRMiN4T0R™
D3D Menu Error
Hey there,

I just tried to make d3d menu from @qmoainx D3d menu tutorial [Cause I didn't learn D3D yet]

And I got error at building , Asked my friend he said he cant help cause he's an opengl coder

Link to tutorial

Sorry Its too big to post here

I made the headers and everything .




The Error
1>------ Build started: Project: D3DMenu, Configuration: Debug Win32 ------
1> D3DMenu.cpp
1>c:\users\idc\documents\visual studio 2010\projects\d3dmenu\d3dmenu\functions.h(13): 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>c:\users\idc\documents\visual studio 2010\projects\d3dmenu\d3dmenu\d3dmenu.cpp(166): 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
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
If you cant help here do it via PM Please.

Don't go Off topic.

Any Help will be Thanked.

Virus scans :
Jotti
Virus Total
#1 · edited 14y ago · 14y ago
YU
yusuf4141
1>------ Build started: Project: D3DMenu, Configuration: Debug Win32 ------
1> D3DMenu.cpp
1>c:\users\idc\documents\visual studio\C++ 2010\projects\d3dmenu\d3dmenu\functions.h(13): 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>c:\users\idc\documents\visual studio\C++ 2010\projects\d3dmenu\d3dmenu\d3dmenu.cpp(166): 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
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
No Erorr code : #5 SR(S)**#Fixederror
#2 · 14y ago
Fly3r
Fly3r
lol easiest error ever.. well sometimes it can be tricky
Yours
Code:
 "GetModuleHandleW"
Fixed
Code:
 L"GetModuleHandleW"
#3 · 14y ago
TE
TeRMiN4T0R™
Quote Originally Posted by Fly3r View Post
lol easiest error ever.. well sometimes it can be tricky
Yours
Code:
 "GetModuleHandleW"
Fixed
Code:
 L"GetModuleHandleW"
Tried yours , Another error.


Edit: This worked without any errors

hD3D = (DWORD)"GetModuleHandleW(d3dx9.dll)";
Okay I need help with this error please.

1>c:\users\idc\documents\visual studio 2010\projects\d3dmenu\d3dmenu\functions.h(13): 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
Code
#include "SystemIncludes.h"


void PrintText(char pString[], int x, int y, D3DCOLOR col, ID3DXFont *font)
{
RECT FontRect = { x, y, x+500, y+30 };
font->DrawText( NULL, pString, -1, &FontRect, DT_LEFT | DT_WORDBREAK, col);
}
#4 · edited 14y ago · 14y ago
Fly3r
Fly3r
try that again or just go to project properties and made it Multi Byte char
#5 · 14y ago
TE
TeRMiN4T0R™
Quote Originally Posted by Fly3r View Post
try that again or just go to project properties and made it Multi Byte char
Here is the Result

1>------ Build started: Project: D3DMenu, Configuration: Debug Win32 ------
1> D3DMenu.cpp
1>c:\users\idc\documents\visual studio 2010\projects\d3dmenu\d3dmenu\functions.h(8): 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
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#6 · 14y ago
giniyat101
giniyat101
check project setting.
character set:multi byte characters
press thanx
#7 · edited 14y ago · 14y ago
TE
TeRMiN4T0R™
Quote Originally Posted by giniyat101 View Post
check project setting.
character set:multi byte characters
press thanx
When I tried Multi char I got this error

1>------ Build started: Project: D3DMenu, Configuration: Debug Win32 ------
1> D3DMenu.cpp
1>c:\users\idc\documents\visual studio 2010\projects\d3dmenu\d3dmenu\functions.h(8): 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
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#8 · 14y ago
Jacket
Jacket
All clean. /approved
#9 · 14y ago
giniyat101
giniyat101
Quote Originally Posted by TeRMiN4T0R™ View Post
When I tried Multi char I got this error
check functions.h file
Code:
  void PrintText(char pString[], int x, int y, D3DCOLOR col, ID3DXFont *font)
change to :
Code:
  void PrintText(LPCWSTR pString, int x, int y, D3DCOLOR col, ID3DXFont *font)
#10 · 14y ago
TE
TeRMiN4T0R™
Quote Originally Posted by giniyat101 View Post
check functions.h file
Code:
  void PrintText(char pString[], int x, int y, D3DCOLOR col, ID3DXFont *font)
change to :
Code:
  void PrintText(LPCWSTR pString, int x, int y, D3DCOLOR col, ID3DXFont *font)
Another error
1>------ Build started: Project: D3DMenu, Configuration: Release Win32 ------
1> D3DMenu.cpp
1>D3DMenu.cpp(39): error C2664: 'PrintText' : cannot convert parameter 1 from 'char *' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>D3DMenu.cpp(47): error C2664: 'PrintText' : cannot convert parameter 1 from 'const char [17]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>D3DMenu.cpp(52): error C2664: 'PrintText' : cannot convert parameter 1 from 'char *' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>D3DMenu.cpp(102): error C2664: 'PrintText' : cannot convert parameter 1 from 'const char [3]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>D3DMenu.cpp(104): error C2664: 'PrintText' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>D3DMenu.cpp(121): error C2664: 'PrintText' : cannot convert parameter 1 from 'const char [37]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>D3DMenu.cpp(123): error C2664: 'PrintText' : cannot convert parameter 1 from 'const char [37]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#11 · edited 14y ago · 14y ago
giniyat101
giniyat101
Quote Originally Posted by TeRMiN4T0R™ View Post
Another error
first, this is English only forum, so remove arabic
second, google Hans211 D3D base or TopBlast D3D base both are good
#12 · 14y ago
TE
TeRMiN4T0R™
Solved by giniyat101

/Request close
#13 · 14y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

  • D3d Menu weird error?By LawlFaceXD in WarRock Hack Source Code
    7Last post 14y ago
  • [Help]D3D MenuBy cothen12 in C++/C Programming
    13Last post 18y ago
  • D3D base error, Why im i getting this?By HazXoD3D in C++/C Programming
    5Last post 16y ago
  • D3D starterkit errorBy p0wn4ge in C++/C Programming
    4Last post 18y ago
  • My D3D menu closes :| ! Source attachedBy Jammy122333 in C++/C Programming
    1Last post 18y ago

Tags for this Thread

None