【发布时间】:2019-03-10 16:38:12
【问题描述】:
在 Visual Studio 上的 x64 dll 项目中,添加以下行:
#include <d3dkmthk.h>
给了我数百个类似这样的错误:
Error (active) E0090 function returning function is not allowed
Error C2059 syntax error: '__cdecl'
Error C2143 syntax error: missing ';' before '__cdecl'
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int
【问题讨论】:
-
您的问题是 C++ 问题,而不是 C。这也是 MCVE 吗?
-
我想你是对的,我在真正得到答案之前就写了这个问题,这导致我添加了最终不必要的信息。
标签: c++ visual-studio dll directx