Win32 program interface is Window 98 style

Recently, I encountered a problem when writing a program. It took a long time to solve it. Now I will share it. Add a sentence
at the beginning of the program and you can easily solve it.
#pragma comment(linker,”/manifestdependency:\”type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='asterisk' publicKeyToken='6595b64144ccf1df' language='star No. '\"")
About why it is written like this, here is a link to explain it, the reason is that the Windows application has some configuration in the manifest file. In VS2013 and above, the manifest file is Embeded, which can be found in the project properties.
Right-click the project Property -> Manifest Tool -> Input and Output -> Embeded Manifest The default is Yes, select No to see it in the generated file manifest file. It can be configured in the manifest file, and this problem can also be solved, but the files generated after my configuration are overwritten.
For issues related to manifest files, please refer to the following link:
http://www.cnblogs.com/lidabo/archive/2013/12/19/3482593.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325588215&siteId=291194637