ue4 调用windows库函数报错 error C2872: error C2872: “DWORD”: 不明确的符号
来源:互联网 发布:手机怎么查mac地址 编辑:程序博客网 时间:2024/05/16 02:52
当在虚幻引擎(ue4)中调用 windows api 是 会出现一下类似的错误时:
1>C:\Program Files (x86)\Windows Kits\8.1\include\shared\rpcasync.h(114): error C2872: “DWORD”: 不明确的符号
1> C:\Program Files (x86)\Windows Kits\8.1\include\shared\minwindef.h(156): note: 可能是“unsigned long DWORD”
1> c:\epic games\ue_4.14\engine\source\runtime\core\public\Misc/DisableOldUETypes.h(34): note: 或 “DoNotUseOldUE4Type::DWORD”
1>C:\Program Files (x86)\Windows Kits\8.1\include\shared\rpcasync.h(126): error C2872: “UINT”: 不明确的符号
1> C:\Program Files (x86)\Windows Kits\8.1\include\shared\minwindef.h(177): note: 可能是“unsigned int UINT”
1> c:\epic games\ue_4.14\engine\source\runtime\core\public\Misc/DisableOldUETypes.h(31): note: 或 “DoNotUseOldUE4Type::UINT”
可以用下面的方法解决:
#include "AllowWindowsPlatformTypes.h"
#include <windows.h>
#include <comdef.h>
#include <WbemIdl.h>
#include "HideWindowsPlatformTypes.h"
- ue4 调用windows库函数报错 error C2872: error C2872: “DWORD”: 不明确的符号
- 解决“error C2872: “ACCESS_MASK”: 不明确的符号“报错
- error C2872: “IDocument”: 不明确的符号
- error C2872: “Font”: 不明确的符号
- error C2872: “ACCESS_MASK”: 不明确的符号
- error C2872: “CPoint”: 不明确的符号
- error C2872: “ACCESS_MASK”: 不明确的符号
- error C2872: “flann”: 不明确的符号 --- PCL 与OpenCV2 的flann命名空间冲突问题的解决方法
- Compiler Error C2872 产生错误的研究
- error C2872: ‘IServiceProvider’ : ambiguous symbol;
- error C2872: 'ATL' : ambiguous symbol
- error C2872: 'ULONG_PTR' : ambiguous symbol
- error C2872: ‘ofstream’ : ambiguous symbol
- error C2872: ULONG_PTR : ambiguous symbol 问题的解决
- error C2872: ULONG_PTR : ambiguous symbol 问题的解决
- error C2872: 'ofstream' : ambiguous symbol 错误解决
- error: cout 不明确的符号
- error: “Font”: 不明确的符号
- 进程间通讯(一) 有名管道
- android音频(三)——利用ndk直接编译faac和faad(续1)
- appium 设备操作总结
- Cmake Practice(六)
- 解决IE中duration返回NaN问题
- ue4 调用windows库函数报错 error C2872: error C2872: “DWORD”: 不明确的符号
- RxJava的简单使用(一)
- 《大话设计模式》——学习笔记之面向对象原则&UML类图
- JS高级. 02 面向对象、创建对象、构造函数、自定义构造函数、原型
- Java学习笔记(一)JDK安装与配置
- 大数据知识体系
- python3中urllib库的使用
- curl perl python 模拟post请求
- 最大子数组问题