Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Disconnected units

1 view
Skip to first unread message

Michael Corby

unread,
Jul 11, 2008, 5:55:12 PM7/11/08
to
When I create a new project in C++ Builder 2007 and add units from a
BDS 2006 project I am getting some problems. For some of the units, in the
IDE I can display the code but I cannot switch to the associated form,
even though the dfm file shows in the Project Manager. F12 does nothing.
When I click on the dfm file in the Project Manager nothing happens.
There is no way to show the form.
Is there any way to reconnect the code with the form ?

Michael Corby

David Dean [CodeGear]

unread,
Jul 12, 2008, 3:51:26 PM7/12/08
to
In article <4877...@newsgroups.borland.com>,
"Michael Corby" <mco...@indigo.ie> wrote:

Assuming that this is not a package project, then all you need to do
is make sure that the header guards match the filename correctly and
that the filename is a unique identifier. (You can't have a file named
TTest.cpp and the form in the file also named TTest) Using TTest.cpp as
an example, the TTest.h file should have a line like this near the top:

#ifndef TTestH
#define TTestH


If the TTestH is in another format such as TTest_h, the project manager
will not recognize the cpp, h, and dfm files as a unit.
--
David Dean (CodeGear)
Lead C++ QA Engineer

Michael Corby

unread,
Jul 13, 2008, 6:10:33 AM7/13/08
to
Hello David

The project has about 150 units and the names in 6 of the header files were
mangled.
I corrected them as you suggested and the forms are now displaying.
Interestingly, the unit headers have the same mangled names in BDS2006 and
they work.
C++ Builder2007 is a big improvement on BDS2006.

Many thanks for the help.

Michael Corby

"David Dean [CodeGear]" <david....@spam.codegear.com> wrote in message
news:david.dean.no-5BF...@killface.local...

0 new messages