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

my dialog node missed during the creation of mfc project

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

请帮助我。提前致谢..

感谢您将您的项目发送给我。如果您right-click您现有的资源内容并且select资源包含[=36​​=]:

这会显示一个弹出窗口 window:

注意到我用黄色突出显示的部分了吗?您包括了来自 外部 文件的所有参考文献。当您在 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.

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

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

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