
vc
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 评论 -
VC error C4430错误解决方法
在调试vc程序时有时会报:error C4430: missing type specifier - int assumed. Note: C++ does not support default-int解决方法:打开工程属性configuration->C/C++ ->Command Line,增加/wd4430选项原创 2012-05-25 14:26:14 · 4905 阅读 · 0 评论 -
error C2440: 'static_cast' 错误的解决方法
问题描述: 在将vc6.0程序转换到vs2005或者vs2008、vs2010时提示:error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CStaticLink::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint) 解决方法: 找到 UNI原创 2012-05-25 13:57:37 · 15900 阅读 · 4 评论 -
Sproxy 生成WebService引用报内存溢出的解决方案
在VC 开发中引用webservice时需要用工具Sproxy生成wsdl文件对应.h文件,但是往往会出现内存溢出的情况,我的机器配置为server 2008r2 64位,当换到32位机器上运行时就没有这个问题了,看来sproxy 不支持64位啊原创 2012-05-24 08:46:06 · 2333 阅读 · 0 评论