Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-05

fileutil unit dependencies

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrea Mauri

Why FileUtil unit uses LCL? There is a comment in the unit:

   // For Smart Linking: Do not use the LCL!

I would like to use some functions included in FileUtil (e.g. ExtractFileNameOnly) also in a Console Application without LCL dependencies, is it possible?
Andrea

Reply by email

Mattias Gaertner
to Andrea Mauri
Show quoted text 5 lines
Why FileUtil unit uses LCL? There is a comment in the unit: // For Smart Linking: Do not use the LCL! I would like to use some functions included in FileUtil (e.g. ExtractFileNameOnly) also in a Console Application without LCL dependencies, is it possible?

Yes.
Add LCL as dependency in the project inspector and use the unit FileUtil. The compiler is clever enough to only use the FileUtil unit.

Mattias

Reply by email