.net - 我的对话节点在创建 mfc 项目时丢失了

标签 .net visual-c++ visual-studio-2015 mfc

enter image description here我有类似(.rc 和.rc2)的资源文件。我如何从现有资源中添加我的 dailog 节点。是否可以将我的对话节点恢复到我当前的项目中。 实际上对话节点部分在资源 View 窗口中是不可见的。

请帮助我。提前致谢。

最佳答案

感谢您将您的项目发送给我。如果您右键单击现有资源内容并选择资源包含:

Resource Includes

这会显示一个弹出窗口:

Resource Includes Dialog Box

注意到我用黄色突出显示的部分了吗?您包括了来自外部 文件的所有引用。当您在 MSDN Library 上查看有关 Resource Includes Dialog Box 的信息时你会看到如下语句:

Compile-time directives

Allows you to include resource files that are created and edited separately from the resources in your main resource file, contain compile-time directives (such as those that conditionally include resources), or contain resources in a custom format. You can also use the Compile-time directives box to include standard MFC resource files. For more information, see Including Resources at Compile Time.

在上面的相关链接中,它还说明了您将资源放在外部文件中的原因:

Notes

在我看来,如果您想以可视方式编辑这些资源,则必须有另一个管理它们的项目。因此,目前您必须自己编辑它们。

您唯一可能做的另一件事是将外部 RC 文件的内容合并到您的主 RC 文件中并删除 #include 语句,但我不知道这对您的情况是否可行.

关于.net - 我的对话节点在创建 mfc 项目时丢失了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48899861/

相关文章:

.net - this == null//怎么可能?

c++ - 使用 VS 2015 编译 Protocol Buffers 2.6.1?

c# - ContextMenuStrip 中的 TextBox 离开事件未触发

c# - 林克 2 SQL : composite primary key

c# - "Constraints for explicit interface implementation..."

c++ - VC++知道数组中存储的元素个数

visual-studio-2010 - 在 VS2010 中复活 MFC/Visual Studio 6.0 项目

angularjs - 是否可以在 Visual Studio 中不使用 .net 框架来构建 SPA?

c# - 当 IE 未在 Windows 7 上以管理员身份打开时,不会触发 WebBrowser 事件

.net - 在调用例程之后和之前在哪里评估不变量?