
VS2010
Mushroom_lb
系统架构 软件设计 全栈工程师
展开
-
C++判断操作系统是32位还是64位
BOOL Is64Bit_OS(){ BOOL bRetVal = FALSE; SYSTEM_INFO si = { 0 }; LPFN_PGNSI pGNSI = (LPFN_PGNSI) GetProcAddress(GetModuleHandle(_T("kernel32.dll")), "GetNativeSystemInfo"); if (pGNSI == NULL) {原创 2012-06-01 13:43:04 · 10724 阅读 · 7 评论 -
C++ 加载PNG资源图片
void LoadResImage(int nResID,Image * &lpImage){ HMODULE hModule=AfxGetInstanceHandle(); HRSRC hRsrc = ::FindResource (hModule,MAKEINTRESOURCE(nResID),_T("PNG")); // type if (!hRsrc) return;原创 2012-06-01 13:29:40 · 6943 阅读 · 1 评论 -
Error C2664 解决方法
问题: 在vs 2010 中编译时提示 : IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" 解决方法: 在调用前添加( const WCHAR * )即可解决原创 2012-06-01 11:04:57 · 4756 阅读 · 0 评论 -
Beginngin Visual C++ 2010
CONTENT:原创 2012-05-31 16:55:14 · 709 阅读 · 0 评论