随笔分类 - C++
摘要:转自:http://blog.csdn.net/chenyujing1234/article/details/7387712不能转换void (_thiscall CMainFrame::*)(void)to LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)2010-05-13 11:35开发平台由VC6.0升级至VS2005,需要将原有的项目迁移,可能碰到类似错误: error C2440: 'static_cast' : cannot convert from 'void (__thiscall CMainFrame::* )
阅读全文
摘要:转自:http://blog.csdn.net/grasshopperwarbler/article/details/6337754这里说的是SDI的情况,如果在vs2010里面按着默认选项创建一个单文档工程,然后想做一件事情 ,就是把一个默认的子菜单的一项钩选,代码如下 :GetMenu()->GetSubMenu(0)->CheckMenuItem(ID_FILE_NEW,MF_BYCOMMAND|MF_CHECKED);加在CMainFrame::Oncreate()里面,整个程序就会崩溃,出现的异常类似如此:Unhandled exception at 0x58aba12c
阅读全文
摘要:在VS2010中开发MFC ActiveX控件,开发完后,通常使用VS自带的容器ActiveX Control Test Container来运行ActiveX控件。此容器在VS安装后的文件中是找不到的,需要自己手动获取。如下所述:(1)按照你的VS所安装的路径,找到VC2010Samples.zip这个压缩文件,其在Samples下的名为2052文件夹中,如在我的电脑上,其所在路径为:C:\Program Files\Microsoft Visual Studio 10.0\Samples\2052\VC2010Samples.zip。(2)找到这个压缩文件后,将其减压到当前文件夹中。(3)
阅读全文
摘要:ActiveX Test Container Application is Still Available(转)Hello, I’m Pat Brenner, a developer on the Visual C++ Libraries team. I’ve noticed some posts on various forums lamenting the loss of the ActiveX Test Container application and I wanted to address those concerns.The ActiveX Text Container tool
阅读全文
浙公网安备 33010602011771号