Atlwinverapi.h(712):错误C3861:'lcmapstringex':未找到标识符

编程入门 行业动态 更新时间:2024-10-23 01:30:16
本文介绍了Atlwinverapi.h(712):错误C3861:'lcmapstringex':未找到标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在将vs 2008项目转换为vs2017。 plz帮我解决这个错误。 什么我试过了: i尝试将winver 0x0400和_win32_winnt 0x0400更改为0x601。

解决方案

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':未找到标识符

本文发布于:2023-10-07 15:24:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469765.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标识符   未找到   错误   Atlwinverapi   lcmapstringex

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!