Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Borland C++ Builder 中加载 .cpp 文件时不显示“设计”选项卡。我有三个扩展文件,如.cpp, .dfm and .h. 我正在使用 Borland C++ Builder 2007。请为我提供解决此问题的方法。
.cpp, .dfm and .h
确保所有三个文件具有相同的基本名称,例如:Unit1.cpp、Unit1.h和Unit1.dfm.
Unit1.cpp
Unit1.h
Unit1.dfm
确保 .h 文件具有符合 Borland 命名约定的正确标头保护,例如:
#ifndef Unit1H #define Unit1H ... #endif
确保 .cpp 文件包含#pragma resource "*.dfm"语句。
#pragma resource "*.dfm"