In order for me to use Direct3D's GUI I must make my build a unicode build. Microsoft had steps for this, but it still wouldn't work because it wasn't for my compiler. Plus the steps(as usual) weren't too good.
In order for me to use Direct3D's GUI I must make my build a unicode build. Microsoft had steps for this, but it still wouldn't work because it wasn't for my compiler. Plus the steps(as usual) weren't too good.
Visit www.gamingdl.com - A gaming download database
*Complete and ready for you!
what compiler are you using?
Its on the title, VC++
Visit www.gamingdl.com - A gaming download database
*Complete and ready for you!
#define UNICODE
#define _UNICODE
but do it for the project in the project settings and not on a per file basis.
Use TCHAR instead of char (or std::wstring, or typedef a type based on std::basic_string using TCHAR). It won't hurt to include tchar.h. Use the TEXT or _T macros to convert string literals or just use L"string", where "string" is whatever string literal you're using, to force them to wide characters in the first place.
If that isn't clear then you should provide more information regarding what steps you've already taken, the code you're trying to convert and any errors you may be getting.
If you haven't already done so, search the boards as there's been a number of unicode discussions in the past that may be of some interest to you.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
there have been quite a few versions of VC++ -- version 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0 and 8.0. And there are several versions of the MS-DOS compiler too. Then for WinCE there is eVC++ 3.0 and eVC++ 4.0.Originally Posted by gamingdl'er
I use VC++ 6.0 with UNICODE all the time and have no problems with it.
My question is how to I add it to my project... Anyways, much thanks on answering it!
Visit www.gamingdl.com - A gaming download database
*Complete and ready for you!
And I've already got that included, it still won't work. This is so fustrating Im ready to pull my hair out. I've followed every step.
I have to say, my problems arn't just because of the UNICODE, I get errors from Direct3D's GUI's files all over the place. This is VERY annoying. I cannot figure out how to use this GUI and Im really about to give up.
Last edited by gamingdl'er; 12-08-2005 at 06:06 PM.
Visit www.gamingdl.com - A gaming download database
*Complete and ready for you!
Or you might consider actually providing some real information that will help us to help you, as has already been suggested, such as:
version of your compiler
problematic code
compiler errors you are getting with that problematic code.
[edit]
>>My question is how to I add it to my project<<
msdn: visual studio .net project preprocessor definitions. Similar idea for other versions of msvc.
[/edit]
Last edited by Ken Fitlike; 12-08-2005 at 06:47 PM.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.