Hello i have a copied a little code from the internet and it uses _tcsstr
and i was wondering what the header of that method is so that i can use it...
Short answer: #include <tchar.h>
Long answer: Stop using TCHAR altogether. TCHAR
was a Microsoft invention way back when it was common for code to cross compile for both ANSI based Windows 95/98 and Unicode based Windows NT(2000/XP). These days TCHAR
is a rather antiquated concept. C/C++ projects targeting Windows should just have UNICODE and _UNICODE defined by default. Instead of using strstr
or tcsstr
, just use wcsstr
. Replace all your TCHAR
and LPTSTR
references with wchar_t
and LPWSTR
as appropriate.