VS2005 *.exe.intermediate.manifest加载失败问题解决

在使用VS2005进行代码自动生成时遇到MFC工程*.exe.intermediate.manifest文件加载失败的问题,进一步检查发现stdafx.h文件中存在错误配置,涉及manifest依赖声明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近做VS2005代码自动生成工具,发现所生成的MFC工程编译能正确,但是加载文件清单时发现*.exe.intermediate.manifest文件加载失败,经过检查生成的代码框架发现说生成的stdafx.h文件有错误,具体问题是“#ifdef _UNICODE

#if defined _M_IX86

#pragma comment(linker,"/manifestdependency:/"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'/"")

#elif defined _M_IA64

#pragma comment(linker,"/manifestdependency:/"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'/"")

#elif defined _M_X64

#pragma comment(linker,"/manifestdependency:/"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'/"")

#else

#pragma comment(linker,"/manifestdependency:/"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'/"")

#endif

#endif"内容不正确。

LogDirectoryWatcher: A directory notification for '../../../Engine/Plugins/' was aborted. LogDirectoryWatcher: A directory notification for 'C:/Users/24994/Documents/Unreal Projects/BP_1/Plugins/' was aborted. LogUObjectHash: Compacting FUObjectHashTables data took 0.82ms LogTurnkeySupport: Project requires temp target (已启用OSC插件) LogLauncherProfile: Unable to use promoted target - C:/Users/24994/Documents/Unreal Projects/BP_1/Binaries/Win64/UnrealGame.target does not exist. LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ""E:/Epic Games/ue/UE_5.3/Engine/Build/BatchFiles/RunUAT.bat" -ScriptsForProject="C:/Users/24994/Documents/Unreal Projects/BP_1/BP_1.uproject" Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=57066 -project="C:/Users/24994/Documents/Unreal Projects/BP_1/BP_1.uproject" BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project="C:/Users/24994/Documents/Unreal Projects/BP_1/BP_1.uproject" -unrealexe="E:\Epic Games\ue\UE_5.3\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" -platform=Win 64 -SkipCookingEditorContent -installed -stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory="C:/Users/24994/Desktop/cs/CS" -clientconfig=Development" -nocompile -nocompileuat ] UATHelper: 打包 (Windows): Running AutomationTool... UATHelper: 打包 (Windows): Using bundled DotNet SDK version: 6.0.302 UATHelper: 打包 (Windows): Starting AutomationTool... UATHelper: 打包 (Windows): Parsing command line: -ScriptsForProject="C:/Users/24994/Documents/Unreal Projects/BP_1/BP_1.uproject" Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=57066 -project="C:/Users/24994/Documents/Unreal Projects/BP_1/BP_1.uproject" BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project="C:/Users/24994/Documents/Unreal Projects/BP_1/BP_1.uproject" -unrealexe="E:\Epic Games\ue\UE_5.3\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" -platform=Win64 -SkipCookingEditorContent -installed -stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory=C:/Users/24994/Desktop/cs/CS -clientconfig=Development -nocompile -nocompileuat UATHelper: 打包 (Windows): Initializing script modules... UATHelper: 打包 (Windows): Total script module initialization time: 0.21 s. UATHelper: 打包 (Windows): Executing commands... UATHelper: 打包 (Windows): Installed Sdk validity: UATHelper: 打包 (Windows): Win64: (Status=Valid, MinAllowed_Sdk=10.0.00000.0, MaxAllowed_Sdk=10.9.99999.0, Current_Sdk=10.0.18362.0, Allowed_AutoSdk=10.0.18362.0, Current_AutoSdk=, Flags="InstalledSdk_ValidVersionExists, Sdk_HasBestVersion") UATHelper: 打包 (Windows): Scanning for envvar changes... UATHelper: 打包 (Windows): ... done! UATHelper: 打包 (Windows): Cleaning Temp Paths... UATHelper: 打包 (Windows): BUILD SUCCESSFUL UATHelper: 打包 (Windows): Setting up ProjectParams for C:\Users\24994\Documents\Unreal Projects\BP_1\BP_1.uproject UATHelper: 打包 (Windows): ********** BUILD COMMAND STARTED ********** UATHelper: 打包 (Windows): Running: E:\Epic Games\ue\UE_5.3\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe "E:\Epic Games\ue\UE_5.3\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" BP_1 Win64 Development -Project="C:\Users\24994\Documents\Unreal Projects\BP_1\BP_1.uproject" -Manifest="C:\Users\24994\Documents\Unreal Projects\BP_1\Intermediate\Build\Manifest.xml" -remoteini="C:\Users\24994\Documents\Unreal Projects\BP_1" -skipdeploy -log="C:\Users\24994\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Epic+Games+ue+UE_5.3\UBT-BP_1-Win64-Development.txt" UATHelper: 打包 (Windows): Log file: C:\Users\24994\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Epic+Games+ue+UE_5.3\UBT-BP_1-Win64-Development.txt UATHelper: 打包 (Windows): Creating makefile for BP_1 (no existing makefile) UATHelper: 打包 (Windows): Writing manifest to C:\Users\24994\Documents\Unreal Projects\BP_1\Intermediate\Build\Manifest.xml UATHelper: 打包 (Windows): Building BP_1... UATHelper: 打包 (Windows): Using Visual Studio 2022 14.44.35208 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10). UATHelper: 打包 (Windows): [Upgrade] UATHelper: 打包 (Windows): [Upgrade] Using backward-compatible build settings. The latest version of UE sets the following values by default, which may require code changes: UATHelper: 打包 (Windows): [Upgrade] CppStandard = CppStandardVersion.Default => Updates C++ Standard to C++20 (Previously: CppStandardVersion.Cpp17). UATHelper: 打包 (Windows): [Upgrade] WindowsPlatform.bStrictConformanceMode = true => Updates MSVC strict conformance mode to true (Previously: false). UATHelper: 打包 (Windows): [Upgrade] Suppress this message by setting 'DefaultBuildSettings = BuildSettingsVersion.V4;' in BP_1.Target.cs, and explicitly overriding settings that differ from the new defaults. UATHelper: 打包 (Windows): [Upgrade] UATHelper: 打包 (Windows): Determining max actions to execute in parallel (8 physical cores, 16 logical cores) UATHelper: 打包 (Windows): Executing up to 8 processes, one per physical core UATHelper: 打包 (Windows): Requested 1.5 GB memory per action, 4.25 GB available: limiting max parallel actions to 2 UATHelper: 打包 (Windows): ------ Building 15 action(s) started ------ UATHelper: 打包 (Windows): [1/15] Compile [x64] SharedPCH.Core.Cpp17.cpp UATHelper: 打包 (Windows): Detected compiler newer than Visual Studio 2022, please update min version checking in WindowsPlatformCompilerSetup.h UATHelper: 打包 (Windows): E:\Epic Games\ue\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4668: û�н���__has_feature������ΪԤ�������꣬�á�0���滻��#if/#elif�� UATHelper: 打包 (Windows): E:\Epic Games\ue\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: Ԥ������ָ����������� - Ӧ���뻻�з� UATHelper: 打包 (Windows): [2/15] Resource Default.rc2 UATHelper: 打包 (Windows): [3/15] Copy tbb.dll LogSlate: Last resort fallback font was requested. Font: '../../../Engine/Content/Slate/Fonts/DroidSansFallback.ttf', Character: 'Ԥ (U+0524)' LogSlate: Took 0.006061 seconds to synchronously load lazily loaded font '../../../Engine/Content/SlateDebug/Fonts/LastResort.ttf' (5269K) UATHelper: 打包 (Windows): [4/15] Copy tbbmalloc.dll UATHelper: 打包 (Windows): [5/15] Copy tbbmalloc.pdb UATHelper: 打包 (Windows): [6/15] Copy tbb.pdb UATHelper: 打包 (Windows): [7/15] Copy OpenImageDenoise.dll UATHelper: 打包 (Windows): [8/15] Copy D3D12Core.dll UATHelper: 打包 (Windows): [9/15] Copy d3d12SDKLayers.dll UATHelper: 打包 (Windows): [10/15] Copy tbb12.dll UATHelper: 打包 (Windows): [11/15] Compile [x64] SharedPCH.Engine.Cpp17.cpp UATHelper: 打包 (Windows): Detected compiler newer than Visual Studio 2022, please update min version checking in WindowsPlatformCompilerSetup.h UATHelper: 打包 (Windows): E:\Epic Games\ue\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4668: û�н���__has_feature������ΪԤ�������꣬�á�0���滻��#if/#elif�� UATHelper: 打包 (Windows): E:\Epic Games\ue\UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: Ԥ������ָ����������� - Ӧ���뻻�з� UATHelper: 打包 (Windows): Total time in Parallel executor: 33.40 seconds UATHelper: 打包 (Windows): Total execution time: 35.70 seconds UATHelper: 打包 (Windows): Took 36.09s to run dotnet.exe, ExitCode=6 UATHelper: 打包 (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\24994\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Epic+Games+ue+UE_5.3\UBT-BP_1-Win64-Development.txt) UATHelper: 打包 (Windows): AutomationTool executed for 0h 0m 38s UATHelper: 打包 (Windows): AutomationTool exiting with ExitCode=6 (6) UATHelper: 打包 (Windows): BUILD FAILED PackagingResults: Error: Unknown Error
最新发布
06-02
``` parser = argparse.ArgumentParser() parser.add_argument(&#39;--path_dicom&#39;, type=str, required=True, help=&#39;Local path of helical projection data.&#39;) parser.add_argument(&#39;--path_out&#39;, type=str, default=&#39;out&#39;, help=&#39;Output path of rebinned data.&#39;) parser.add_argument(&#39;--scan_id&#39;, type=str, default=&#39;scan_001&#39;, help=&#39;Custom scan ID.&#39;) parser.add_argument(&#39;--idx_proj_start&#39;, type=int, default=12000, help=&#39;First index of helical projections that are processed.&#39;) parser.add_argument(&#39;--idx_proj_stop&#39;, type=int, default=16000, help=&#39;Last index of helical projections that are processed.&#39;) parser.add_argument(&#39;--save_all&#39;, dest=&#39;save_all&#39;, action=&#39;store_true&#39;, help=&#39;Save all intermediate results.&#39;) parser.add_argument(&#39;--no_multiprocessing&#39;, dest=&#39;no_multiprocessing&#39;, action=&#39;store_true&#39;, help=&#39;Switch off multiprocessing using joblib.&#39;) run(parser)```PS E:\Desktop\helix2fan> python "E:\Desktop\helix2fan\helix2fan-master\main.py" --path_dicom E:\DDDM-DATA\manifest-1586193031612\NSCLC-Radiomics\LUNG1-001\09-18-2008-StudyID-NA-69331\0.000000-NA-82046 Processing scan scan_001. Loading projection data: 0it [00:00, ?it/s] Traceback (most recent call last): File "E:\Desktop\helix2fan\helix2fan-master\main.py", line 68, in <module> run(parser) File "E:\Desktop\helix2fan\helix2fan-master\main.py", line 19, in run raw_projections, parser = read_dicom(parser) File "E:\Desktop\helix2fan\helix2fan-master\read_data.py", line 82, in read_dicom nu = data_headers[0].Rows IndexError: list index out of range这个文件夹里有若干个dicom文件,为什么又会报错
04-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值