一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

Can't compile due to issues with preprocessor constants | Microsoft Connect

 筱肆 2014-02-19

 

類型: 錯(cuò)誤
代碼: 455721
打開日期: 2009/5/21 13:31:02
訪問限制: 公開
1
解決方法
查看
1
用戶可以重現(xiàn)此錯(cuò)誤

描述

I tried loading a small C++ MFC program, and then tried to compile it.

I got several messages involving _WIN32_WINNT needing to be #defined to some value, despite having _WIN32_WINNT=0x0501 in the preprocessor constants in project properties. These were in afxv_w32.h, atlcore.h, and afxcomctl32.h.

I also got a message that PSCROLLBARINFO was undefined in afxwin.h and afxwin4.inl, although it appears to be defined in winuser.h.

Also CCM_SETWINDOWTHEME undeclared in afxcmn3.inl.
登錄 發(fā)布 評(píng)論。
brajesh jaishwal 在 2011/10/19 3:34 發(fā)送
keep only this code segment, and comment all other three if you do not need them

#ifndef _WIN32_WINNT        // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0501        // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif

if you are using win 7 then use
#ifndef _WIN32_WINNT        // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0601        // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif
Mike Gold 在 2010/6/9 19:33 發(fā)送
I was also having the issue triggered in atlcore.h


Adding


#ifndef _WIN32_WINNT        // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0501        // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif

right after

#pragma once seemed to solve the problem. Make sure you do a rebuild after adding the line, or you will still get the error.
vudv 在 2010/6/2 0:42 發(fā)送
Me too.
Error    1    error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.    d:\vudv programs\program files\microsoft visual studio 10.0\vc\atlmfc\include\atlcore.h    35

Every one can help me!!!!
alan93 在 2010/5/11 7:59 發(fā)送
Fix offered by G.M. Did not work for me I got the same error after trying fix applied to stdafx.h
rellimG 在 2009/10/8 16:10 發(fā)送
To fix this problem, make your stdafx.h file look like this:

// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER                // Allow use of features specific to Windows 95 and Windows NT 4 or later.
#define WINVER 0x0501        // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif

#ifndef _WIN32_WINNT        // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0501        // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif                        

#ifndef _WIN32_WINDOWS        // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0501 // Change this to the appropriate value to target Windows Me or later.
#endif

#ifndef _WIN32_IE            // Allow use of features specific to IE 4.0 or later.
#define _WIN32_IE 0x0500    // Change this to the appropriate value to target IE 5.0 or later.
#endif

Microsoft 在 2009/5/25 於 2:56 公佈
Thanks for reporting the issue.
In order to fix the issue, we must first reproduce the issue in our labs. We are unable to reproduce the issue with the steps you provided.

Could you please upload a zipped project file to help us reproduce the problem?

It would be greatly appreciated if you could provide us with that information as quickly as possible. If we do not hear back from you within 7 days, we will close this issue.

Thanks again for your efforts and we look forward to hearing from you.
Visual Studio Product Team
Microsoft 在 2009/5/22 於 4:44 公佈
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)

    本站是提供個(gè)人知識(shí)管理的網(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條評(píng)論

    發(fā)表

    請遵守用戶 評(píng)論公約

    類似文章 更多

    黄片免费在线观看日韩| 九九久久精品久久久精品| 国产午夜精品亚洲精品国产| 欧美成人免费视频午夜色| 嫩呦国产一区二区三区av| 日韩国产亚洲一区二区三区| 好吊日成人免费视频公开| 日本最新不卡免费一区二区| 国内精品一区二区欧美| 精品香蕉一区二区在线| 国产麻豆精品福利在线| 91亚洲国产—区=区a| 沐浴偷拍一区二区视频| 精品欧美日韩一区二区三区 | 婷婷基地五月激情五月| 开心久久综合激情五月天| 91国自产精品中文字幕亚洲| 日本中文字幕在线精品| 色欧美一区二区三区在线| 麻豆视传媒短视频免费观看| 1024你懂的在线视频| 日韩精品一区二区亚洲| 中文字幕日韩一区二区不卡| 亚洲一区二区三区av高清| 亚洲黑人精品一区二区欧美| 男女午夜福利院在线观看| 成人午夜激情在线免费观看| 久久偷拍视频免费观看| 亚洲欧美日韩综合在线成成| 精品一区二区三区三级视频| 日本和亚洲的香蕉视频| 国产传媒高清视频在线| 在线观看免费视频你懂的| 国产精品日本女优在线观看| 色涩一区二区三区四区| 丁香六月啪啪激情综合区| 91精品视频免费播放| 99久久国产精品亚洲| 色哟哟国产精品免费视频| 久热人妻中文字幕一区二区| 亚洲欧美日本国产不卡|