🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.migration
3 messages
3 total messages Started by Michael Corby Fri, 11 Jul 2008 21:55
Disconnected units
#139
Author: Michael Corby
Date: Fri, 11 Jul 2008 21:55
9 lines
1394 bytes
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
Re: Disconnected units
#140
Author: David Dean [CodeGear]
Date: Sat, 12 Jul 2008 19:51
26 lines
2048 bytes
In article <4877d6bf@newsgroups.borland.com>,
 "Michael Corby" <mcorby@indigo.ie> wrote:

> 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 ? 

   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
Re: Disconnected units
#141
Author: Michael Corby
Date: Sun, 13 Jul 2008 10:10
48 lines
2755 bytes
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.dean.no@spam.codegear.com> wrote in message 
news:david.dean.no-5BFAB1.12512612072008@killface.local...
> In article <4877d6bf@newsgroups.borland.com>,
> "Michael Corby" <mcorby@indigo.ie> wrote:
>
>> 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 ?
>
>   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 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads