
C++
Mushroom_lb
系统架构 软件设计 全栈工程师
展开
-
c++ 通过网络模块Socket连接三菱PLC
一、头文件//--------------------------------------------------------------------------- #ifndef PLCEthernetH #define PLCEthernetH //-----------------------------------------------------------------原创 2012-06-20 13:15:57 · 9692 阅读 · 3 评论 -
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 评论