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);
}
I don't have any knowledge about coding. So I wouldn't know.
Originally Posted by [N.O]N.A.M.E
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
Before you try to make menu , try to make d3d stuff first
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..
just learn full d3d and make your base , like that everyone can make D3D and that's not funny, just learn by yourself ...
Originally Posted by iDarkness
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 ----------
Originally Posted by [N.O]N.A.M.E
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 ----------