delphi - borland C++ builder 中不显示“设计”选项卡

标签 delphi c++builder-2007

在 Borland C++ Builder 中加载 .cpp 文件时不显示“设计”选项卡。我有三个扩展文件,例如 .cpp、.dfm 和 .h。我正在使用 Borland C++ Builder 2007。请为我提供解决此问题的方法。

最佳答案

确保所有三个文件具有相同的基本名称,例如:Unit1.cppUnit1.hUnit1.dfm

确保 .h 文件具有符合 Borland 命名约定的适当 header 保护,例如:

#ifndef Unit1H
#define Unit1H
...
#endif

确保 .cpp 文件包含 #pragma resources "*.dfm" 语句。

关于delphi - borland C++ builder 中不显示“设计”选项卡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6983390/

相关文章:

c++ - 控件单击以在 IDE 中获取定义不起作用

c++ - log4cpp 给出 `unresolved external` 错误

delphi - StrToFloat 无法报告 Delphi 64 位中的无效 float

delphi - EnumerateTraceGuids 返回 "The parameter is incorrect"(87)

installation - 在运行时检查安装程序是否有 Uninstallable=True?

使用 MVC 范式的数据库应用程序

delphi - 为什么 Delphi IDE 还包含 .NET 代码而不仅仅是 Object Pascal

c++ - 错误消息 : "Resource ExperimentFrame.res not found"