MFC开发
zhm_joy
懒人族
展开
-
TransparentBlt的使用
TransparentBit函数式windows api函数,使用方法如下: 1、添加头文件:#include 。TransparentBit这个函数其实是在Wingdi.h文件中定义的,不过应该是跟生产的库文件有关吧,所有添加的是windows.h; 2、添加依赖库:Msimg32.lib,要没有添加这个库的话会报下面的错。原创 2012-08-02 18:10:12 · 7348 阅读 · 0 评论 -
*.manifest
如: *.manifest文件一般显示了,工程运行时所以来的库信息: 通过各字段的组合,可确定依赖的库路径,组合方式 “processorArchitecture_name_publicKeyToken_version_* ”,这个目录一般存在“\WIN原创 2013-07-08 14:55:32 · 1186 阅读 · 0 评论 -
vs2005无法打开工程
用vs2005打开工程时报:the selected file is a solution file but was created by a newer version of this application and cannot be opened 解决方法:.sln: Microsoft Visual Studio Solution File, Format Version原创 2013-07-08 14:37:50 · 1090 阅读 · 0 评论 -
销毁窗口警告
Warning: calling DestroyWindow in CDialog::~CDialog --OnDestroy or PostNcDestroy in derived class will not be called.此警告,为当我们在关闭窗口的时候还有其他窗口未调用DestroyWindow进行关闭,可以坐如下操作进行解决:CPicToolView::~CPicT原创 2012-11-02 17:08:15 · 805 阅读 · 0 评论 -
CSliderCtrl 内存泄露
Detected memory leaks!Dumping objects ->{430} client block at 0x02C827C0, subtype c0, 84 bytes long.a CSliderCtrl object at $02C827C0, 84 bytes longObject dump complete.CSliderCtrl 成员变量出现内存泄原创 2012-11-02 17:18:30 · 519 阅读 · 0 评论 -
warning LNK4089
问题:warning LNK4089: all references to "OLEAUT32.dll" discarded by /OPT:REF,这个问题没啥影响,好像是跟本身程序无关的,可以忽略,不想看到警告,可以用以下方法屏蔽。屏蔽方法: 1、在project->settings->linking->projects options中加上/OPT:NOREF原创 2012-09-11 17:06:14 · 967 阅读 · 0 评论 -
IPicture::Render显示图片失真
//pPicture为IPicture类型 pPicture->Render(hDC, xSor, //输出位置的起始x坐标 ySor, //输出位置的起始y坐标 wDes, //输出位置的宽度 hDes, //输出位置的高度 0, nHeight, nWidth, -nHeight, NULL); 这个函原创 2012-09-11 17:16:45 · 2379 阅读 · 0 评论 -
vc6.0工程转vs2005工程后报winnt.h错误
使用Directshow开发的vc6.0工程转成vs2005工程后,居然winnt.h报错 我跟踪进去后,发现问题出现在这句“typedef void * POINTER_64 PVOID64;”,POINTER_64这个根本就无法再进一步跟踪,找不到了,有两个方法:1、在本地搜索下winnt.h文件,在工具-》选项-》下面的“包含.h/.lib文件”的地方,自己尝试调整原创 2012-08-17 16:43:00 · 1063 阅读 · 0 评论 -
找不到MFC80D.DLL
报这个错的时候,将嵌入清单改成否,方法为:工程属性 —> 配置属性 —> 清单工具 —> 输入和输出 —> 嵌入清单改为“否”;但是很怪异的,改完后,重新编译下,再在把嵌入清单改为“是”,这个错也还是不会出现了。原创 2012-08-17 17:17:53 · 810 阅读 · 0 评论 -
vc6.0工程转vs2005工程后.def的LNK4222警告
vc6.0工程中的.def文件内容如下: 将该工程转成vs2005工程后,报如下警告: 这是因为其中为这四个重要的导出函数指定了四个顺序号。Windows平台上通常用两种方式定位DLL文件中的导出函数,一种是根据导出函数名称,一种是根据顺序号,通过顺序号的优点是占用空间极小,查询调用速度也快;但缺原创 2012-08-17 16:31:29 · 1039 阅读 · 0 评论 -
Enable3dControls警告
warning C4996: 'CWinApp::Enable3dControls': CWinApp::Enable3dControls is no longer needed. You should remove this call.d:\software\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(4818) : see de原创 2012-08-17 17:11:00 · 5254 阅读 · 0 评论 -
文件字符串编码警告
有时工程中会报“字符在当前文档中不能显示,会有数据丢失”warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss解决方法:打开出现w原创 2012-08-17 17:02:24 · 651 阅读 · 0 评论 -
lstrlenWInternal链接错误
有的时候可能出现如下错误(vc6.0工程转vs2005后):1>H264Addin.obj : error LNK2019: unresolved external symbol "int __stdcall lstrlenWInternal(wchar_t const *)" (?lstrlenWInternal@@YGHPB_W@Z) referenced in function "p原创 2012-08-17 16:53:03 · 1070 阅读 · 0 评论 -
wizard解析错误
在MFC工程中经常会看到以下成对出现消息映射对: //{{AFX_MSG_MAP(CMainFrame) //}}AFX_MSG_MAP 1、在此大家千万别觉得是多余啥的就把他给去掉了,到时候就就有问题了,到时候wizard就无法解析了,下图是我去掉后报的错,在此情况下,虽然能进wizard向导,但是会提示要你添加一个新类原创 2012-08-01 17:36:14 · 1080 阅读 · 0 评论 -
vector报C2143/C4430错
错误:1>Compiling...1>InterfaceStabilityTestDlg.cpp1>.\InterfaceStabilityTestDlg.cpp(25) : error C2143: syntax error : missing ';' before '1>.\InterfaceStabilityTestDlg.cpp(25) : error C4430: m原创 2013-12-09 14:59:27 · 1751 阅读 · 0 评论