Hi Friend of the Forum,
After searching as far as I know, quite strongly, I have no choice but to ask for your help and annoy them with something perhaps extremely simple.
I have been running an application developed in Delphi 2010 for a long time under Windows, which works acceptably well.
For platform reasons, fundamentally the new ones, smaller and cheaper, I am trying to translate it into Multiplatform, so far quite reasonably Fast.
The problem I encounter is with GetModuleFileName, a function that returns the name of the Library / Application that I am running.
I can't find a way to find the Linux equivalent.
Why do I need it? So that when I run Logs, which I have separated by Library, I can generate the name of the corresponding log file.
This function is in a general Unit, which is called with several DLL / SOs that use common functions / procedures.
Will it be possible to help me in this regard?
From already thank you very much