<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 03/04/2024 18:49, Gabriele
Cappelletto via lazarus wrote:<br>
</div>
<blockquote type="cite"
cite="mid:421f5d98-3e76-40a0-8d43-dac8b1e04ab0@yahoo.it">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<span dir="ltr" lang="it"><span>
<div class="QFw9Te BLojaf">
<div class="fXYY1b D5aOJc"><span class="LdhArd"></span></div>
</div>
</span></span>
<div class="DVHrxd">
<div data-show-delay-ms="250" data-append-to-body="true"
data-propagate-tooltip-mouseover-events="true"
data-anchor-corner="bottom-left"
data-enable-skip-handler="false" data-popup-corner="top-left"
id="ow352" __is_owner="true">
<div><span></span></div>
</div>
</div>
<div class="DVHrxd"> </div>
<div aria-hidden="true" class="UdTY9 BwTYAc leDWne"
data-location="1"> </div>
<div class="ebT7ne sMVRZe"> </div>
<div class="FFpbKc">
<div><span class="mgPWDe">
<div data-show-delay-ms="250" data-append-to-body="true"
data-propagate-tooltip-mouseover-events="true"
data-anchor-corner="bottom-left"
data-enable-skip-handler="false"
data-popup-corner="top-left" id="ow357" __is_owner="true">
<div><span></span></div>
</div>
</span></div>
</div>
<div class="r375lc">
<div class="aJIq1d" dir="ltr" data-language-code="it"
data-language-name="Italiano" data-text=""
data-crosslingual-hint="undefined" data-location="1"
data-enable-toggle-playback-speed="true"><span
data-irrelevant-id="ucj-11"></span>
<div class="m0Qfkd"><span data-is-tooltip-wrapper="true"></span></div>
</div>
</div>
<div class="FFpbKc">
<div class="usGWQd">
<div class="KkbLmb">
<div class="lRu31" dir="ltr"><span class="HwtZe" lang="en"><span
class="jCAhz ChMk0b"><span class="ryNqvb">The code is
this</span></span><span class="jCAhz"><span
class="ryNqvb"><br>
</span></span></span></div>
<div class="lRu31" dir="ltr"><span class="HwtZe" lang="en"><br>
</span></div>
function TExtPApplicationDescriptor.InitProject(AProject:
TLazProject): TModalResult; <br>
<br>
TProject(AProject).UseAppBundle := False;<br>
TProject(AProject).ProjResources.XPManifest.UseManifest :=
False;<br>
TProject(AProject).ProjResources.ProjectIcon.SetStream(nil);
<br>
<br>
TProject(AProject).CompilerOptions.ExecuteBefore.Command :=<br>
</div>
<div class="KkbLmb"><br>
</div>
</div>
</div>
<p><span class="HwtZe" lang="en"><span class="jCAhz ChMk0b"><span
class="ryNqvb">We need the reference to TProject, how do I
remove this reference?</span></span></span></p>
<br>
</blockquote>
<br>
Mind that getting this to work is only "being lucky".<br>
<br>
It is not meant to work.<br>
That is the unit "project" is part of the IDE, and only meant to be
used by the IDE. From a license point of few, it is GPL (not LGPL),
so if your code is GPL, then you are permitted to use it, but....<br>
<br>
The unit comes with no warranties on it's interface. It could change
in any way, and such changes would not be announced. (so long as the
IDE and lazbuild themself are still working).<br>
<br>
The same is true for any file inside the ide folder. And that does
include files in packages inside the ide folder.<br>
<br>
------------------<br>
<br>
Also further more, it may (maybe) fail even if it compiles (at least
I think it may). If either your code or the IDE is build with -O4
but not the other. Then FPC may produce different memory layout for
the 2 equally named classes (it's only "equally name classes", it is
not "equal classes"). And in future fpc could produce differences in
other situations.<br>
<br>
You best get in a feature request, so that functionality that is
required can be (considered for) included in the IdeIntf.<br>
</body>
</html>