1. 开始我从MSDN 中copy WinMain原型时,搞错了
下面的代码编译是说 WinMain不能重载…..原来是参数不对. LPWSTR, 指向宽字符串的指针,16位=2个字节=一个字word
LPCWSTR— Pointer to a constant null-terminated string of 16-bit Unicode characters. For more information, see Character Sets Used By Fonts.
下面这个WinMain是基于WIN CE
This function is called by the system as the initial entry point for WindowsCE-based applications.
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd );
下面这个是基于Windows , for a Windows-based application.
T
版权声明:本文为sergery原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。