[Lazarus] How to determine the file extension to use

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Oct 23 11:52:34 CEST 2009


2009/10/23 Vincent Snijders <vsnijders at vodafonevast.nl>:
>
> http://lazarus-ccr.sourceforge.net/docs/lcl/fileutil/getexeext.html


Looking at the implementation of GetExeExt(), I'm not sure how
"complete" this is. Especially if applied to other platforms. For
example, OS/2 also uses ".exe" extension. Also, doesn't Mac OS X use
something like .dm? extension.  So I guess this function needs a bit
more work before it is FPC ready. :-)

--------------------------
function GetExeExt: string;
begin
  {$IFDEF WINDOWS}
  Result:='.exe';
  {$ELSE}
  Result:='';
  {$ENDIF}
end;
--------------------------



-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/




More information about the Lazarus mailing list