_L error
-
I was trying to build a atl program in .net, I got this error error C3861: '_L': identifier not found, even with argument-dependent lookup on the line if( lstrcmpiW(szName, _L("Output")) == 0 ) .............. What should I use instead of _L ()?
-
I was trying to build a atl program in .net, I got this error error C3861: '_L': identifier not found, even with argument-dependent lookup on the line if( lstrcmpiW(szName, _L("Output")) == 0 ) .............. What should I use instead of _L ()?
"string" = ascii 8-bit character string L"string" = unicode 16-bit character string #ifdef _UNICODE _T("string") = L"string" = unicode 16-bit character string #else _T("string") = "string" = ascii 8-bit character string #endif -- He just smiled and gave me a vegemite sandwich.
-
I was trying to build a atl program in .net, I got this error error C3861: '_L': identifier not found, even with argument-dependent lookup on the line if( lstrcmpiW(szName, _L("Output")) == 0 ) .............. What should I use instead of _L ()?
Shouldn't it be:
if (lstrcmpiW(szName, L"Output") == 0)
or
if (lstrcmpiW(szName, _T("Output")) == 0)
A rich person is not the one who has the most, but the one that needs the least.