| View previous topic :: View next topic |
| Author |
Message |
David Wilcockson Guest
|
Posted: Fri Jul 29, 2005 10:47 am Post subject: 11:00 A.M 24 hours of Delphi - did they get it right? |
|
|
http://bdn.borland.com/article/0,1410,33109,00.html
41:20 minutes into the talk 11:00AM the question is asked:
'Is the any reason why we can't use a single project file for Win32 and
..dotnet'
I think essentially the answered that followed was that you can't do this.
Borland very often talk about easy migration to dotnet use VCL.NET, but
porting (vs migrating) to .NET is also important to us (so that we can have
both a windows version and a dotnet version).
The good news is that you CAN easily achieve this (although QC10123 is still
marked as open, it seemed to be fixed in SP1)
Simply rename your bdsproj file to the name of your project and then 'win32'
(if it is a Win32 project). Open the project.dpr file again and it will ask
you to upgrade, then choose .NET. Rename to the bdsproj file again and add
'dotnet'.
Therefore:
1) myprogramdotnet.bdsproj which myprogram.dpr
2) myprogramwin32.bdsproj which myprogram.dpr
Since SP1 we have happily been opening the correct bdsproj file and then
compiling for .net or win32.
I think being able to support both platforms (Win32 and .NET) from single
source in Delphi is a tremendous selling feature - which perhaps Borland
themselves should be more aware of? :-)
David
|
|
| Back to top |
|
 |
Leonel Guest
|
Posted: Fri Jul 29, 2005 11:20 am Post subject: Re: 11:00 A.M 24 hours of Delphi - did they get it right? |
|
|
David Wilcockson wrote:
| Quote: | 'Is the any reason why we can't use a single project file for Win32
and .dotnet'
I think essentially the answered that followed was that you can't do
this.
(snip)
1) myprogramdotnet.bdsproj which myprogram.dpr
2) myprogramwin32.bdsproj which myprogram.dpr
|
Then you have two project files. <g> I think the question was if you
can have a single project file and change the target through an project
option.
But multiple bdsprojs is a fairly good solution IMO.
--
Leonel
|
|
| Back to top |
|
 |
David Wilcockson Guest
|
Posted: Fri Jul 29, 2005 11:45 am Post subject: Re: 11:00 A.M 24 hours of Delphi - did they get it right? |
|
|
| Quote: | Then you have two project files.
|
Yes :-)
Although it's the DPR file that stores all the source code, not the BDSPROJ
(if I add more code to the 'Project Source' it's added to the dpr and so is
used by both the dotnet project and win32).
The BDSPROJ file seems really more like a configuraton file.
David
|
|
| Back to top |
|
 |
Peter Morris [Droopy eyes Guest
|
Posted: Fri Jul 29, 2005 2:25 pm Post subject: Re: 11:00 A.M 24 hours of Delphi - did they get it right? |
|
|
I thought the question was asking if you could mix file types within the
same project?
|
|
| Back to top |
|
 |
|