久久国产成人av_抖音国产毛片_a片网站免费观看_A片无码播放手机在线观看,色五月在线观看,亚洲精品m在线观看,女人自慰的免费网址,悠悠在线观看精品视频,一级日本片免费的,亚洲精品久,国产精品成人久久久久久久

分享

win32/mfc 異常處理與總結(jié)

 無云666 2015-10-15

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


實(shí)際異常二:
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


實(shí)際異常三:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
處理方法:
project->BaseClasses properties->configuration->C/C++ ->Command Line,增加/wd4430選項(xiàng)。

實(shí)際異常四:

中文亂碼,單字節(jié)字符(vc6)、Unicode(vc8 vc9 vc10)

處理方法:

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

 實(shí)際異常五:

VC++ 2008編譯錯(cuò)誤fatal error C1902問題的解決

處理方法:

將C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\mspdbsrv.exe復(fù)制到C:\Program Files\Microsoft Visual Studio 9.0\VC\bin下即可,。

實(shí)際異常六 :

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對應(yīng)的項(xiàng)中刪除_CONSOLE, 添加_WINDOWS.
3.Configuration Properties->Linker->System,然后在右邊欄的SubSystem對應(yīng)的項(xiàng)改為Windows(/SUBSYSTEM:WINDOWS)

  

 實(shí)際異常七:

處理方法:

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

實(shí)際異常八:

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

處理方法:

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

實(shí)際異常九:

vc2005及以上和6.0的DLL導(dǎo)出函數(shù)中有wchar_t, 都無法被對方使用, 必須在vc2005及以上版本中做如下設(shè)置

處理方法:

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

實(shí)際異常十:

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

實(shí)際異常十一:

afximpl.h中MENUGETOBJECTINFO、HRAWINPUT找不到而出錯(cuò),。

處理方法:

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

typedef struct HRAWINPUT__ * HRAWINPUT;

實(shí)際異常十二:

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

處理方法:

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

    本站是提供個(gè)人知識管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,,不代表本站觀點(diǎn),。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,,謹(jǐn)防詐騙,。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報(bào),。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多