<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/5/15 Graeme Geldenhuys <span dir="ltr"><<a href="mailto:graeme@geldenhuys.co.uk" target="_blank">graeme@geldenhuys.co.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 2013-05-15 15:02, Edilson Vieira wrote:<br>
> I really do not understand why I can not make a console App that uses the<br>
> Graphics unit because in Delphi there is no problem on that.<br>
<br>
</div>In Windows it is not really noticeable, because ALL Windows<br>
installations have access to a GUI. You simply don't get Windows (even a<br>
server install) that doesn't have a GUI. For a server, that is really a<br>
waste of resources. Linux, FreeBSD etc are quite different, where a<br>
server install often [really] has no GUI at all (no X11 is installed).<br>
<br>
So for "real" console apps, you don't have access to Clipboard, Graphics<br>
etc units - because they all depend on a GUI sub-system being available.<br>
<br>
If you are only going to deploy your app on Windows, then you can indeed<br>
setup a LCL package dependency to your "console" app, include the<br>
Graphics unit and use TBitmap. But remember that your app might not have<br>
a user interface, bit in still depends on he GUI sub-system, so is not<br>
considered a true console application. Just don't expect that<br>
application to run under Linux or FreeBSD servers though.<br>
<br>
This is nothing odd or strange, just things Windows developers often<br>
don't realize, because they only know one OS. There knowledge of<br>
cross-platform development is often lacking.<br>
<div class="im HOEnZb"><br></div></blockquote></div><br></div><div class="gmail_extra">You are right. I am looking forward to have such knowledge because I have the goal to make these apps code portable to, at least, Windows, Linux, MacOS and perhaps iOS also. It has been a very hard work and sometimes a think it is not possible at all! But I will keep trying. Lazarus/FPC has been so far the best promise I have at the moment.<br>
<br></div><div class="gmail_extra">Thanks for the info.<br><br></div><div class="gmail_extra">Regards,<br><br></div><div class="gmail_extra">Edilson.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br>
</div><div class="gmail_extra"><br><br></div><div class="gmail_extra"><br></div></div>