PostSolvedHelp me MODs

Posts 1–6 of 6 · Page 1 of 1
Help me MODs

I'm trying to create a D3D menu but gave the following error:

Code:
1>------ Build started: Project: MenuBase, Configuration: Release Win32 ------
1>  D3dbase.cpp
1>c:\users\user\documents\visual studio 2010\projects\menubase\Functions.h(6): error C2664: 'ID3DXFont::DrawTextW' : 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>D3dbase.cpp(134): 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 ==========
Sreenshot
ERRO1


ERRO2



I will be grateful if you help me
Go into your project's properties and change the character set to "Multi-Byte Character Set"
Quote Originally Posted by Flengo View Post
Go into your project's properties and change the character set to "Multi-Byte Character Set"
DETAIL CAN EXPLAIN

---------- Post added at 01:05 PM ---------- Previous post was at 12:46 PM ----------

Quote Originally Posted by 6ixth View Post
DETAIL CAN EXPLAIN
already got that part just discovered another problem

ERRO:

1>------ Build started: Project: D3DPBmenu, Configuration: Debug Win32 ------
1> D3dbase.cpp
1>LINK : fatal error LNK1104: cannot open file 'd3dx9.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Code:
hD3D = (DWORD)GetModuleHandle(L"D3D9.DLL");
Change character to Multi byte or just use DrawTextA \ GetModuleHandleA
You need to add the DirectX SDK
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us