[Lazarus] Path that .exe file is running from

Michael Van Canneyt michael at freepascal.org
Fri Aug 2 11:57:26 CEST 2013



On Fri, 2 Aug 2013, Michael Schnell wrote:

> On 08/02/2013 11:07 AM, Michael Van Canneyt wrote:
>> Widget types do not even enter the picture, customapplication is included 
>> in FPC, not Lazarus.
>> 
>
> I see. Thanks.
>
> So you suggest deriving and instantiating a propriety application from the 
> TCustomApplication class ?

I don't suggest anything. I just react on incorrect information.

>
> Will that automatically provide the correct string as MyApplication.ExeName ?

Yes.

> I thing just using the Lazarus NoGUI Widget Type is more appropriate.

No, for 2 reasons:

1) It creates unwanted dependencies. 
2) It creates the illusion of functionality which isn't actually there.

Sooner or later it will bite you in the leg.

Michael.




More information about the Lazarus mailing list