Atlwinverapi.h(712):错误C3861:'lcmapstringex':未找到标识符 [英] Atlwinverapi.h(712): error C3861: 'lcmapstringex': identifier not found

查看:1114
本文介绍了Atlwinverapi.h(712):错误C3861:'lcmapstringex':未找到标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将vs 2008项目转换为vs2017。

plz帮我解决这个错误。



什么我试过了:



i尝试将winver 0x0400和_win32_winnt 0x0400更改为0x601。

解决方案

< BLOCKQUOTE> 1。在当前项目文件中搜索_WIN32_WINNT的定义,如果有的话,擦除它们。



2.在项目中添加StdAfx(头文件和源文件) 。



3.在StdAfx.h中定义以下宏:



#define _WIN32_WINNT 0x0A00

#define _ATL_APARTMENT_THREADED

#define _USING_V110_SDK71_

#define _ATL_XP_TARGETING



4.包括StdAfx.h标头到需要这些宏的源文件。 StdAfx.cpp必须始终包含其标题。

5.插入相应的宏;转到项目属性,配置属性,C / C ++,预处理器,编辑预处理器定义,然后使用下一个语法插入这些宏:



NTDDI_VERSION = 0x06030000
WINVER = 0x0A00

_WIN32_WINNT = 0x0A00







6.此外,在StdAfx.h中,在宏定义之后包括以下Afx标题:





#define VC_EXTRALEAN //从Windows标题中排除很少使用的东西



#include< afxwin.h> // MFC核心和标准组件

#include< afxext.h> // MFC扩展



#ifndef _AFX_NO_OLE_SUPPORT

#include< afxole.h> // MFC OLE类

#include< afxodlgs.h> // MFC OLE对话框类

#include< afxdisp.h> // MFC自动化课程

#endif // _AFX_NO_OLE_SUPPORT



#ifndef _AFX_NO_DB_SUPPORT

#include< afxdb .H> // MFC ODBC数据库类

#endif // _AFX_NO_DB_SUPPORT



#ifndef _AFX_NO_DAO_SUPPORT

#include< afxdao.h> // MFC DAO数据库类

#endif // _AFX_NO_DAO_SUPPORT



#include< afxdtctl.h> // MFC支持Internet Explorer 4通用控件

#ifndef _AFX_NO_AFXCMN_SUPPORT

#include< afxcmn.h> // MFC对Windows公共控件的支持

#endif // _AFX_NO_AFXCMN_SUPPORT



#include< windows.h>


i am converting a vs 2008 project to vs2017.
plz help me how to solve this error.

What I have tried:

i tried of changing winver 0x0400 and _win32_winnt 0x0400 to 0x601.

解决方案

1. Search for definitions of _WIN32_WINNT in the current project files, if there are some of them, erase them.

2. Add StdAfx (header and source) files in the project.

3. In StdAfx.h define the following macros:

#define _WIN32_WINNT 0x0A00
#define _ATL_APARTMENT_THREADED
#define _USING_V110_SDK71_
#define _ATL_XP_TARGETING

4. Include StdAfx.h header to the source files that needs these macros. StdAfx.cpp is required to always include its header.
5. Insert the respective macros; go to the Project Properties, Configuration Properties, C/C++, Preprocessor, edit Preprocessor Definitions, and insert these macros with the next syntax:

NTDDI_VERSION= 0x06030000
WINVER=0x0A00
_WIN32_WINNT=0x0A00



6. Additionally, In StdAfx.h include the following "Afx" headers after the Macros definitions:


#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers

#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions

#ifndef _AFX_NO_OLE_SUPPORT
#include <afxole.h> // MFC OLE classes
#include <afxodlgs.h> // MFC OLE dialog classes
#include <afxdisp.h> // MFC Automation classes
#endif // _AFX_NO_OLE_SUPPORT

#ifndef _AFX_NO_DB_SUPPORT
#include <afxdb.h> // MFC ODBC database classes
#endif // _AFX_NO_DB_SUPPORT

#ifndef _AFX_NO_DAO_SUPPORT
#include <afxdao.h> // MFC DAO database classes
#endif // _AFX_NO_DAO_SUPPORT

#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <windows.h>


这篇关于Atlwinverapi.h(712):错误C3861:'lcmapstringex':未找到标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆