i have been creating a game, and have used const char* and strings all the way through.
so am i right in thinking, that i can simply support unicode by changing my function headers to
void buildFX(TCHAR * location);
and calls to
BasicEffect->buildFX(TEXT("files\\effect_files\\ambientdiffusespec.fx"));
and
mhMainWnd = CreateWindow(TEXT("D3DWndClassName"), TEXT("Guns and blood 'n' stuff"),
etc etc
and depending upon how i build the project, multibyte or unicode, the text macro will call the correct function, either the normal function or the wfunction.
is this correct
_T("ee") == TEXT("ee"), both of these are the same, and depending on unicode or MB being set with create either a wchar or char
L("ee") == only creates wchar pointers, and you HAVE to define unicode
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement