文档说明(Enabling Visual Styles):
链接到ComCtl32.lib并调用InitCommonControls。
将名为YourApp.exe.manifest的文件添加到具有XML清单格式的源树中。
- 醇>
将清单添加到应用程序的资源文件中,如下所示:
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "YourApp.exe.manifest"
如何使用GCC工具链(或通用)实现这一目标?是否可以使用C而不是C ++编译它?
(更新)
windres --input test.rc --output test.res --output-format=coff gcc -o test.exe test.c test.res -lmsvcr90
正确编译但我遇到了VC2008运行时依赖的一些问题,我现在无法重启我的电脑,所以我稍后会对我的发现进行反思