从VB2005
升级https://github.com/LestaD/SourceEngine2007时出现这些错误,而我似乎无法解决问题......
错误是由稍后包含的依赖项引起的
错误列表:
Error C2061 syntax error: identifier 'STAT_CHUNK'
Error C3646 'GetChunkType': unknown override specifier
Error C2061 syntax error: identifier 'CHUNKSTATE'
这些是文件:
.. \ Microsoft Visual Studio \ 2017 \ Community \ VC \ Tools \ MSVC \ 14.11.25503 \ atlmfc \ include \ atlhandler.h
.. \ Microsoft Visual Studio \ 2017 \ Community \ VC \ Tools \ MSVC \ 14.11.25503 \ atlmfc \ include \ afxwin.h
一般属性:
Target Platform: Windows 10
Windows SDK Version: 10.0.14393.0
Platform Toolset: Visual Studio 2017 (v141)
Configuration Type: Dynamic Library (.dll)
Use of MFC: Use MFC in a Shared DLL
Character Set: Use Multi-Byte Character Set
Common Language Runtime Support: Common Language Runtime Support (/clr)
.NET Target Framework Version:
VC ++目录:
Executable Directories: $(VC_ExecutablePath_x86);$(WindowsSDK_ExecutablePath);$(VS_ExecutablePath);$(MSBuild_ExecutablePath);$(SystemRoot)\SysWow64;$(FxCopDir);$(PATH);
Include Directories: C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;$(IncludePath)
Reference Directories: $(VC_ReferencesPath_x86);
Library Directories: C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x86;$(LibraryPath)
Library WinRT Directories: $(WindowsSDK_MetadataPath);
Source Directories: $(VC_SourcePath);
Exclude Directories: $(VC_IncludePath);$(WindowsSDK_IncludePath);$(MSBuild_ExecutablePath);$(VC_LibraryPath_x86);
其余属性看起来很标准
答案 0 :(得分:2)
win10不支持结构STAT_CHUNK
和枚举CHUNKSTATE
。
在下面的链接中向下滚动到底部,您可以注意到客户端支持的结束是“Windows7”
https://msdn.microsoft.com/en-us/library/ms691016(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/windows/desktop/ms691020(v=vs.85).aspx
此外,文档建议使用“ Windows搜索”进行快速搜索。
https://msdn.microsoft.com/en-us/library/windows/desktop/aa965362(v=vs.85).aspx