惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
Jina AI
Jina AI
宝玉的分享
宝玉的分享
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
V
V2EX
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
B
Blog
博客园 - 叶小钗
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
A
About on SuperTechFans
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog

博客园 - bigboo

在VirtualBox虚拟机CentOS6.3安装VBoxAdditions时报错:“building the main Guest Additions module Failed” [转]Windows 7 版本知多少(Win 7 N/K/KN/E) [转]XP 下面标准的dxva 接口不支持h.264 硬件解码的原因 当Windows无法打开新窗口 - bigboo - 博客园 [求助]在Windows Server 2003 SP2上安装SQL SERVER 2008 Express版本时,会遇到“调用的目标发生了异常”的错误,MSDN上提供的修复包需要解压密码 [备案]Windows10月23日 紧急安全更新(KB958644)危害程度"冲击波"类似 - bigboo - 博客园 [原创]关于“ASP.NET MVC Preview 5使用中,只有MVC Project模板,没有MVC Item 模板(MVC Item Template)的问题”解决 ASP.NET MVC Preview 5 发布了,发布日期是2008.08.28,关注一下 [转]密码学基础 (个人认为这篇文章可以作为基础教程,忘记的时候可以翻出来瞧瞧) [转]Oracle与SQL Server选型时注意的三个差异 今天注册了个联想的号称5G网络盘,试用了一下,感觉还行(尽管......),上几个图吧,呵呵 "Enterprise Library 4.0 - May 2008" 支持.net Framework 3.5的版本五月份就发布了,刚看到..... [原创]SQL Server 2008 安装过程中遇到“性能计数器注册表配置单元一致性”检查失败 问题的解决方法 IEDevToolBar - 一个分析网页的有用的工具 [z]在VM虚拟机器redhat9下安裝vmware-tool的方法 [原创]查杀中搜在线的searchnet.exe病毒、流氓“划词搜索”病毒和TSPY.AGENT.ASV病毒 关于Nero其Enterprise.Edition对于Ultra.Edition的不同之处!! Enterprise Library For .NetFramework 芮儿的来历
win32/mfc 异常处理与总结
bigboo · 2011-02-17 · via 博客园 - bigboo

实际异常一:

libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __CrtDbgReport
Debug/B机.exe : fatal error LNK1120: 1 unresolved externals
处理办法:
property pages->Configuration Propertyies->C/C++->Code Generation->Runtime Library->Multi-threaded Debug(/MTd)


实际异常二:
Error 30 error C3861: 'CryptReleaseContext': identifier not found c:\users\administrator\desktop\mywin32http-dll\common\include\stringprocess.h 472 1 MyWin32Http-dll
处理方法:
#define _WIN32_WINNT 0x0502


实际异常三:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
处理方法:
project->BaseClasses properties->configuration->C/C++ ->Command Line,增加/wd4430选项。

实际异常四:

中文乱码,单字节字符(vc6)、Unicode(vc8 vc9 vc10)

处理方法:

property pages->Configuration Propertyies->General->Character Set->Use Multi-Byte Character Set

 实际异常五:

VC++ 2008编译错误fatal error C1902问题的解决

处理方法:

将C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\mspdbsrv.exe复制到C:\Program Files\Microsoft Visual Studio 9.0\VC\bin下即可。

实际异常六 :

error LNK2019: unresolved external symbol wWinMain referenced in function wWinMainCRTStartup

处理方法:

1.Linker->Advanced页,将Entry Point由wWinMainCRTStartup改成WinMainCRTStartup

2.Configuration Properties->C/C++->Preprocessor,然后在右边栏的Preprocessor Definitions对应的项中删除_CONSOLE, 添加_WINDOWS.
3.Configuration Properties->Linker->System,然后在右边栏的SubSystem对应的项改为Windows(/SUBSYSTEM:WINDOWS)

 实际异常七:

处理方法:

在stdafx.h文件最上面加入#define _USE_32BIT_TIME_T

实际异常八:

Run-Time Check Failure #2 - Stack around the variable 'dect' was corrupted.

处理方法:

C/C++->Code Generation->Basic Runtime Checks=Default

实际异常九:

vc2005及以上和6.0的DLL导出函数中有wchar_t, 都无法被对方使用, 必须在vc2005及以上版本中做如下设置

处理方法:

C/C++-->Language->Treat wchar_t as Built-in Type --> No (/Zc:wchar_t-)

实际异常十:

Error 2 error C1189: #error :  This file requires _WIN32_WINNT to be #defined at least to 0x0500. Value 0x0501 or higher is recommended. c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxcomctl32.h 23 1 XPFace
处理方法

#ifndef WINVER 0x0500 
#define _WIN32_WINNT 0x0500 
#endif

实际异常十一:

afximpl.h中MENUGETOBJECTINFO、HRAWINPUT找不到而出错。

处理方法:

typedef struct tagMENUGETOBJECTINFO {
 DWORD dwFlags;
 UINT  uPos;
 HMENU hmenu;
 PVOID riid;
 PVOID pvObj;
} MENUGETOBJECTINFO, *PMENUGETOBJECTINFO;

typedef struct HRAWINPUT__ * HRAWINPUT;

实际异常十二:

Error 125 error LNK1104: cannot open file 'LIBC.lib' C:\test\LINK test

处理方法:

Configuration Properties->Linker->Input->Ignore Specific Default Libraries=libc.lib