Top "Tchar" questions

A #define for either char or wchar_t, used for porting ancient windows applications

Windows C++: LPCTSTR vs const TCHAR

In my application i'm declaring a string variable near the top of my code to define the name of my …

c++ windows string winapi tchar
Cannot convert parameter 1 from 'const wchar_t *' to 'LPCTSTR' in MFC / C++ project

I get a compilation error on the line: MessageBox(e.getAllExceptionStr().c_str(), _T("Error initializing the sound player")); Error 4 …

c++ string mfc tchar lpcwstr
Is there a format specifier that always means char string with _tprintf?

When you build an app on Windows using TCHAR support, %s in _tprintf() means char * string for Ansi builds and …

windows printf tchar format-specifiers
C++ TCHAR[] to string

I have this method which receives a path through a TCHAR szFileName[] variable, which contains something like C:\app\...\Failed\ …

c++ string tchar
CString to TCHAR

Today after a long time I've seen this conversion: void SomeFunction( LPCTSTR szText ) ... CString str; str.Format( "A Simple Sentence" ); …

c++ cstring tchar