【问题标题】:C++ Visual Studio 6 MFC ApplicationC++ Visual Studio 6 MFC 应用程序
【发布时间】:2012-11-22 07:38:29
【问题描述】:

我有一个旧的应用程序,有没有一种快速的方法可以在不更改太多代码的情况下对应用程序进行整容? 一些 MFC 模拟器?

【问题讨论】:

  • 如果它是一个 GUI 应用程序并且看起来四四方方且 3-d,请尝试添加清单文件以使用主题控件。该应用程序看起来很现代
  • 你的意思是说,你要升级到新版本。是吗?

标签: mfc


【解决方案1】:
1)Create a file <yourapplication><.exe>.manifest

2)Paste the file in the same path as your exe 

3)Paste the following content inside the manifest file

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
    version=""
    processorArchitecture=""
    name=""
    type=""
/>
<description></description>
<dependency>
    <dependentAssembly>
        <assemblyIdentity
            type="win32"
            name="Microsoft.MSXML2"
            version=""
            processorArchitecture="X86"
            publicKeyToken=""
            language="*"
        />
    </dependentAssembly>
</dependency>
</assembly>

4) Launch the exe.. 

【讨论】:

    【解决方案2】:

    通过阅读您模糊的问题很难意识到您假装在做什么。

    如果您想使用更现代的 Visual Studio 版本,只需在该版本上打开它,就会启动解决方案转换向导。

    如果您想要一些养眼的东西,只需查看功能包。它具有不错的控件,例如可停靠窗格、功能区栏等,可为您的应用程序提供更现代的外观。

    如果您想更改表单背景,只需阅读 WM_CTL_COLOR 和 OnCtlColor 文档并覆盖默认行为即可。

    而且这个列表可以无限继续……

    【讨论】:

      猜你喜欢
      • 2014-06-08
      • 2015-01-19
      • 2010-11-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多