c++ win32程序取获取当前应用程序实例(instance:HINSTANCE)
版权声明:
本文为博主原创文章,转载请声明原文链接...谢谢。o_0。
更新时间:
2014-09-17 00:31:14
温馨提示:
学无止境,技术类文章有它的时效性,请留意文章更新时间,如发现内容有误请留言指出,防止别人"踩坑",我会及时更新文章
if using MFC AfxGetInstanceHandle(). For console programs, call GetConsoleWindow() to get the HWND then GetWindowLong() to get the HINSTANCE. For the Win32 API, you could also use GetModuleHandle(): //get instance of current program (self) HINSTANCE hInst= GetModuleHandle (0);