Header of _tcsstr

后端 未结 1 1978
一生所求
一生所求 2021-01-29 16:05

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...



        
1条回答
  •  时光说笑
    2021-01-29 16:34

    Short answer: #include

    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.

    0 讨论(0)
提交回复
热议问题