<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Joylon,<br>
<br>
this sounds like an excellent idea (as long as the ifdefs work in
an include file and the IDE does not keep removing the $I
directive.) I shall try it as soon as I mend the stupid thing
again.<br>
<br>
I can no longer start XE6 because it says that rtl200.bpl is
missing. Well I cant find any 200.bpls at all !!!<br>
<br>
Rohit<br>
<br>
On 21/07/2014 1:12 p.m., Jolyon Smith wrote:<br>
</div>
<blockquote
cite="mid:CALXexOrHvr85K1oPH3K1nOCOtb=40YAM52wwHJNU2q1oGs-6bw@mail.gmail.com"
type="cite">
<div dir="ltr">ime sharing dpk's (or even dpr's) (or trying to)
between versions can be a recipe for headaches.<br>
<br>
Have you considered using include files to achieve the sharing
of the "meat" of your dpk, whilst allowing the IDE to maintain
"different" versions for each IDE in the dpk files themselves
(with attendant dproj etc) ?<br>
<br>
<br>
<div>package MyPackage2007;</div>
<div><br>
</div>
<div>{$i mypackage.inc}</div>
<div><br>
</div>
<div>end.</div>
<br>
<br>
<div>package MyPackageXE6;</div>
<div><br>
</div>
<div>{$i mypackage.inc}</div>
<div><br>
</div>
<div>end.<br>
<br>
<br>
The downside is that you lose some of the IDE support for
working with the content of your DPK/DPR, but if you are
dependent on $ifdef's in this area then you no doubt already
find yourself having to steer well clear of such IDE support
anyway, since it has as tendency to clobber such things (and
if that's the case, it's worth nothing that the contents of
your include file(s) will be conveniently safe from any
inadvertent meddling by the IDE!).</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 21 July 2014 12:14, Rohit Gupta <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:rohit@cfl.co.nz" target="_blank">rohit@cfl.co.nz</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Joylon,<br>
<br>
Its sorted now. It just does not like the old dproj
file, it doesn't like a cut down edited version, it
doesnt like a blank one and it doesnt like a missing
one !!!!<br>
<br>
I made a new dpk project and saved it and then copied
everything from the old dpk and it works. It seems like
it wants some new xml lines in it or ELSE..<br>
<br>
The issue here is that we have to work concurrently on
2007 and XE6 versions with the same source (and a few
ifdefs). So the last thing I want is the various
clauses - includes, requires, uses to be in a different
order. When its 50 to 100 of them, it makes a huge
difference to source comparison.<br>
<br>
Rohit<br>
<br>
On 21/07/2014 12:05 p.m., Jolyon Smith wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>It looks like perhaps the IDE is trying to be too
clever and when it doesn't find a current dproj is
looking for a historical bdsproj to upgrade from and
not coping when there isn't one (it being
inconceivable that there would be anyone using an
even older version of Delphi that predated the
bdsproj).</div>
<div><br>
</div>
<div>To avoid this, instead of deleting the dproj, try
adding the packages with the current dproj.</div>
<div><br>
</div>
<div>With the prior dproj intact, the IDE should
identify that you are upgrading and offer to save
the old version with a different name (or offer to
save the new version with a different name, I forget
which way round. Though I have a niggly feeling
that in the past I was frustrated by the fact that
it was the former, which imho is the least useful
approach!)<br>
<br>
<br>
You have versioning/backups though, so it shouldn't
matter which particular named variety of these files
the IDE chooses to mess with. Once you have an
upgraded package/project, you "Save As" to get a
file correctly named for new version you need, and
then restore your previous versions from source
control/backups. Right ? :)</div>
<div><br>
hth</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 21 July 2014 11:28, Rohit
Gupta <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:rohit@cfl.co.nz" target="_blank">rohit@cfl.co.nz</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">I
am trying to migrate a group of projects
(packages) from 2007 to<br>
XE6. I deleted the dcus, drc and dproj files.<br>
<br>
Even when I start from a blank project group and
add the existing<br>
project in I get<br>
<br>
"Unable to load project *****.bdsproj<br>
<br>
Of course it doesnt exist, only the dpk does. A
dump of error details<br>
follows. Incidentally I had the same issue last
time migrating another<br>
group to XE5. That I had to recreate brand new
dpk file.... and the<br>
stupid thing was identical to the original one...<br>
<br>
Any clues anyone ?<br>
<br>
<br>
<br>
[21CA67AE]{delphicoreide200.bpl}<br>
BaseDelphiProject.TBaseDelphiProject.Create (Line
775,<br>
"BaseDelphiProject.pas" + 51) + $2C<br>
[223A563A]{delphide200.bpl}<br>
DelphiProject.TDelphiProjectCreationTrait.OpenProject
(Line 314,<br>
"DelphiProject.pas" + 7) + $19<br>
[2069F929]{coreide200.bpl}
ProjectFileUtils.LoadProjectFile (Line 642,<br>
"ProjectFileUtils.pas" + 29) + $34<br>
[21D05BED]{delphicoreide200.bpl}<br>
CommonPasReg.TLegacyModuleHandler.FileOpen (Line
482, "CommonPasReg.pas"<br>
+ 38) + $D<br>
[2086B468]{coreide200.bpl}
DocModul.TFilterList.OpenFile (Line 807,<br>
"DocModul.pas" + 36) + $0<br>
[20870A8C]{coreide200.bpl}
DocModul.ProjectOpenDialog (Line 3295,<br>
"DocModul.pas" + 42) + $3E<br>
[2061437B]{coreide200.bpl}
ProjectMgr.TProjectManager.AddTarget (Line<br>
449, "ProjectMgr.pas" + 2) + $7<br>
[20613C54]{coreide200.bpl}
ProjectMgr.TProjectManager.CommandHandler<br>
(Line 272, "ProjectMgr.pas" + 5) + $A<br>
[204A397B]{coreide200.bpl}<br>
ContainerIntf.TIDEProjectManagerMenuObject.Execute
(Line 862,<br>
"ContainerIntf.pas" + 26) + $17<br>
[204A559E]{coreide200.bpl}
ContainerIntf.TProjectManagerMenuItem.Click<br>
(Line 1110, "ContainerIntf.pas" + 18) + $22<br>
[506289BC]{vcl200.bpl }
Vcl.Menus.TMenu.DispatchCommand (Line 3436,<br>
"Vcl.Menus.pas" + 5) + $4<br>
[50629C2E]{vcl200.bpl }
Vcl.Menus.TPopupList.WndProc (Line 4597,<br>
"Vcl.Menus.pas" + 4) + $E<br>
[50629B7D]{vcl200.bpl }
Vcl.Menus.TPopupList.MainWndProc (Line 4572,<br>
"Vcl.Menus.pas" + 2) + $5<br>
[501766E4]{rtl200.bpl } System.Classes.StdWndProc
(Line 17064,<br>
"System.Classes.pas" + 6) + $1<br>
[50644241]{vcl200.bpl }
Vcl.Forms.TApplication.CancelHint (Line 11180,<br>
"Vcl.Forms.pas" + 6) + $D<br>
[50642EDF]{vcl200.bpl }
Vcl.Forms.TApplication.ProcessMessage (Line<br>
10351, "Vcl.Forms.pas" + 23) + $1<br>
[50642F22]{vcl200.bpl }
Vcl.Forms.TApplication.HandleMessage (Line<br>
10381, "Vcl.Forms.pas" + 1) + $4<br>
[50643255]{vcl200.bpl }
Vcl.Forms.TApplication.Run (Line 10519,<br>
"Vcl.Forms.pas" + 26) + $3<br>
<br>
<br>
Rohit<br>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a moz-do-not-send="true"
href="mailto:delphi@listserver.123.net.nz"
target="_blank">delphi@listserver.123.net.nz</a><br>
Admin: <a moz-do-not-send="true"
href="http://delphi.org.nz/mailman/listinfo/delphi"
target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a
moz-do-not-send="true"
href="mailto:delphi-request@listserver.123.net.nz"
target="_blank">delphi-request@listserver.123.net.nz</a>
with Subject: unsubscribe<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a moz-do-not-send="true" href="mailto:delphi@listserver.123.net.nz" target="_blank">delphi@listserver.123.net.nz</a>
Admin: <a moz-do-not-send="true" href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a moz-do-not-send="true" href="mailto:delphi-request@listserver.123.net.nz" target="_blank">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe</pre>
</blockquote>
<br>
<br>
<div>-- <br>
<p> Regards<br>
<br>
<b>Rohit Gupta</b><br>
B.E. Elec., M.E., Mem IEEE, Mem IET<br>
Technical Director<br>
Computer Fanatics Ltd<br>
<br>
<b>Tel </b>4892280 <br>
<b>Fax </b>4892290 <br>
<b>Web </b><a moz-do-not-send="true"
href="http://www.cfl.co.nz" target="_blank">www.cfl.co.nz</a><br>
</p>
<hr> This email and any attachments contain information,
which is confidential and may be subject to legal
privilege and copyright. If you are not the intended
recipient, you must not use, distribute or copy this
email or attachments. If you have received this in
error, please notify us immediately by return email and
then delete this email and any attachments.</div>
</div>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a moz-do-not-send="true"
href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>
Admin: <a moz-do-not-send="true"
href="http://delphi.org.nz/mailman/listinfo/delphi"
target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a moz-do-not-send="true"
href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a>
with Subject: unsubscribe<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<p>
Regards<br>
<br>
<b>Rohit Gupta</b><br>
B.E. Elec., M.E., Mem IEEE, Mem IET<br>
Technical Director<br>
Computer Fanatics Ltd<br>
<br>
<b>Tel </b>4892280 <br>
<b>Fax </b>4892290 <br>
<b>Web </b><a href="www.cfl.co.nz">www.cfl.co.nz</a><br>
</p>
<hr>
This email and any attachments contain information, which is
confidential and may be subject to legal privilege and copyright.
If you are not the intended recipient, you must not use,
distribute or copy this email or attachments. If you have received
this in error, please notify us immediately by return email and
then delete this email and any attachments.</div>
</body>
</html>