_tWinMain中 _t什么意思,该怎么处理
_tWinMain中 _t什么意思
为什么微软要额外定义一个宏_tWinMain,替代WinMain?
_t有什么特殊的含义吗?
初学mfc的疑问。
------解决思路----------------------
Unicode编码下为wWinMain,多字节编码模式下为WinMain
------解决思路----------------------
//
// FUNCTION: _tWinMain (HINSTANCE , HINSTANCE , LPTSTR , int)
//
// PURPOSE: Standard WinMain function //
// COMMENTS:
// The prototype is _tWinMain, so it can be compiled either as a Unicode or an ANSI application.
//
int WINAPI _tWinMain (HINSTANCE hInstance, HINSTANCE hPrev, LPSTR pszCmdLine, int nCmdShow)
_t 代表 TCHAR
------解决思路----------------------
_t 就是 TCHAR 的 缩写
------解决思路----------------------
刨根问底。。。研究的劲头不错
为什么微软要额外定义一个宏_tWinMain,替代WinMain?
_t有什么特殊的含义吗?
初学mfc的疑问。
------解决思路----------------------
Unicode编码下为wWinMain,多字节编码模式下为WinMain
------解决思路----------------------
//
// FUNCTION: _tWinMain (HINSTANCE , HINSTANCE , LPTSTR , int)
//
// PURPOSE: Standard WinMain function //
// COMMENTS:
// The prototype is _tWinMain, so it can be compiled either as a Unicode or an ANSI application.
//
int WINAPI _tWinMain (HINSTANCE hInstance, HINSTANCE hPrev, LPSTR pszCmdLine, int nCmdShow)
_t 代表 TCHAR
------解决思路----------------------
_t 就是 TCHAR 的 缩写
------解决思路----------------------
刨根问底。。。研究的劲头不错