I am attempting to get my Win32 C++ project to compile in Dev C++. The project was originally made in Visual Studio C++ 2010 so it uses alot of Unicode macro functions such as _tcscmp
. _tcscat
and most importantly _T
.
I am attempting to get my project to compile in Dev C++ (Why? Its a long story but necessary). So I have attempted to define the macro function _T
but I am getting a compiler error when this macro function is used: 'La' undeclared (first use this function)
Any ideas on where my macro function _T
is going wrong?
#if IS_DEVCPLUSPLUS > 0
#undef _T
#define _T(a) La
#endif
// Compile error occurs on below line: "'La' undeclared (first use this function)"
_tcscat( fileName, _T("\\*") );
// The end result should be
_tcscat( fileName, L"\\*" );