在启动项目中添加app.manifest文件
<?xml version="1.0" encoding="utf-8"?> <asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> ...... <!-- 启用 Windows 公共控件和对话框的主题(Windows XP 和更高版本) --> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.vc90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"/> </dependentAssembly> </dependency> </asmv1:assembly>
An application manifest should be added to the Engine application to ensure the correct msvcr90.dll (required by Python) is loaded. In Visual Studio, Add New Item > Application Manifest File (app.manifest). Add the following XML into the app.manifest:
参考:
一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播不法有害信息!
二、互相尊重,对自己的言论和行为负责。