D3D Menu Error Help Plz!!!!

Posts 1–15 of 29 · Page 1 of 2
D3D Menu Error Help Plz!!!!
i haven't done anything on mpgh in the last 3-4 days becuz i was trying hardly to learn the D3D Basics and using topblast's base v1.1 but that base was a little bit hard and i found at last a very simple and also working base.. so i got 4 errors from it i fixed 2 and now 2 are still unfixed and i couldn't fix them so i will share the code and i request you guys to help me in fixing it the code is for @Qmo and i request the help from all G-Force Members as they are experts in d3d :
@giniyat101
@Royku
@CHEATZ
@[N.O]N.A.M.E

ok download that base and please try to tell me and this is the error i get"
1>------ Build started: Project: worked, Configuration: Debug Win32 ------
1> D3Dbase.cpp
1>h:\documents and settings\user\my documents\visual studio 2010\projects\worked\worked\functions.h(13): 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
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
and that is the code that has the aguments:
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);
}
thnx so much :)


Virus Scans:
Da Base.rar - Jotti's malware scan
https://www.virustotal.com/file/a087...is/1328531643/





If You Want To Join Master Coders Add Me on MSN Or PM Me On MPGH!
Heres The Email For MSN:

mastercoders@.hotmail.com

Da Base.rar4 KB · 57 downloads Scanning…
@Dead(H)ell
you can fix by changing Use Unicode characters to use multi byte characters in project properties
okay i did what u said then i got that error:
1>D3Dbase.cpp
1>h:\documents and settings\user\desktop\anotherone\anotherone\functi ons.h(15) : error C2143: syntax error : missing ';' before '}'
1>Build log was saved at "file://h:\Documents and Settings\User\Desktop\anotherone\anotherone\Debug\ BuildLog.htm"
1>anotherone - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
after i added that comma i got that one:
1>------ Build started: Project: anotherone, Configuration: Debug Win32 ------
1>Compiling...
1>D3Dbase.cpp
1>Linking...
1>LINK : fatal error LNK1104: cannot open file 'd3dx9.lib'
1>Build log was saved at "file://h:\Documents and Settings\User\Desktop\anotherone\anotherone\Debug\ BuildLog.htm"
1>anotherone - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========




If You Want To Join Master Coders Add Me on MSN Or PM Me On MPGH!
Heres The Email For MSN:

mastercoders@.hotmail.com

@Hero
Thnx..but did u know how to fix that error?
Quote Originally Posted by Dead(H)ell View Post
@Hero
Thnx..but did u know how to fix that error?
download directx sdk
1>------ Build started: Project: anotherone, Configuration: Debug Win32 ------
1>Compiling...
1>D3Dbase.cpp
1>Linking...
1>LINK : fatal error LNK1104: cannot open file 'd3dx9.lib'
1>Build log was saved at "file://h:\Documents and Settings\User\Desktop\anotherone\anotherone\Debug\ BuildLog.htm"
1>anotherone - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
u just need to install Direct X 10 , and include it's files in C++ Dictionary sitting
Quote Originally Posted by [N.O]N.A.M.E View Post
u just need to install Direct X 10 , and include it's files in C++ Dictionary sitting
i downloaded it and it was already on my pc so..it still gives the error..and could you please show me how to include it in the directories cuz i forgot how to do that i used to do that along time ago
Quote Originally Posted by Dead(H)ell:5734917
@Hero
Thnx..but did u know how to fix that error?
I don't have any knowledge about coding. So I wouldn't know.
Before you try to make menu , try to make d3d stuff first
Quote Originally Posted by iDarkness View Post
If C++ 2008:
TOOLS->Options->Projects & Solutions->VC++ DIRECTORIES->Show Directories for: Include & LIB Files->Edit them->View qjzOg8.png on ScreenSnapr

If C++ 2010:
Right click on your project(UNDER SOLUTIONS)->Properties->Options->Edit them->View Ipx3SM.png on ScreenSnapr
Enjoy..
i still get the error

---------- Post added at 01:10 PM ---------- Previous post was at 01:09 PM ----------

Quote Originally Posted by [N.O]N.A.M.E View Post
u just need to install Direct X 10 , and include it's files in C++ Dictionary sitting
i still get the error

---------- Post added at 01:10 PM ---------- Previous post was at 01:10 PM ----------

Quote Originally Posted by pakeke80 View Post
ok, here is the link of direct x 2004 summer
Download: DirectX 9.0 SDK Update - (Summer 2004) - Microsoft Download Center - Download Details

after you download, install then add it to your c++ directories

OK?
no not okay i still get dat error
@Dead(H)ell

just learn full d3d and make your base , like that everyone can make D3D and that's not funny, just learn by yourself ...
Posts 1–15 of 29 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?