...
首页> 外文期刊>C - C++ Users Journal >Type-Safety & The Resource Splitter Program
【24h】

Type-Safety & The Resource Splitter Program

机译:类型安全和资源拆分程序

获取原文
获取原文并翻译 | 示例

摘要

When you create dialogs at runtime, you specify—directly or indirectly—a resource ID and the dialog loads itself from that resource, which is embodied into your executable. That dialog can—and usually does—contain child controls. These child controls and some of their attributes (text, position, font, and so on) are contained in that resource and are automatically created at runtime. Thus, C++ and GUI can slowly get out of sync—simply using the Resource Editor and removing a control from a dialog can have disastrous effects if in your code you still assume that control exists.
机译:在运行时创建对话框时,可以直接或间接指定资源ID,然后对话框会从该资源中加载自身,该资源体现在可执行文件中。该对话框可以并且通常包含子控件。这些子控件及其某些属性(文本,位置,字体等)包含在该资源中,并在运行时自动创建。因此,C ++和GUI可能会慢慢失去同步-仅使用资源编辑器并从对话框中删除控件会带来灾难性的影响,前提是您在代码中仍然假定控件存在。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号