Article View: borland.public.cppbuilder.migration
Article #141Re: Disconnected units
From: Michael Corby
Date: Sun, 13 Jul 2008 10:10
Date: Sun, 13 Jul 2008 10:10
48 lines
2755 bytes
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
Technical Details
Message-ID:
<4879d49f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<4877d6bf@newsgroups.borland.com> <david.dean.no-5BFAB1.12512612072008@killface.local>Show Full Headers
Complete Article Headers
X-Google-Thread: 110f51,4e17669f29990737 X-Google-Attributes: gid110f51,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Michael Corby" <mcorby@indigo.ie> Newsgroups: borland.public.cppbuilder.migration References: <4877d6bf@newsgroups.borland.com> <david.dean.no-5BFAB1.12512612072008@killface.local> In-Reply-To: <david.dean.no-5BFAB1.12512612072008@killface.local> Subject: Re: Disconnected units Date: Sun, 13 Jul 2008 11:10:33 +0100 Lines: 49 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000 NNTP-Posting-Host: 86.41.204.149 Message-ID: <4879d49f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1215943839 86.41.204.149 (13 Jul 2008 03:10:39 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail