LPCSTR = char*
LPCWSTR = wchar_t*
Control reference: https://docs.microsoft.com/en-us/windows/win32/controls/individual-control-info
ShowWindowEx 的 Class 和 Name 在 Win32 下面默认要求 LPCSTR,DLL 开发下面默认要求 LPCWSTR,显然这样写出来的 DLL 是没法用的,在 Win32 应用的第一行加上 #define UNICODE。LRESULT CALLBACK (*)(HWND, UINT, WPARAM, LPARAM) 函数指针可以直接用 WNDPROCDbgView 应该是弃用了,抓不到调试信息了。原文:https://www.cnblogs.com/ksyx/p/win32-dev-notes.html