Achieving application portability within Windows and Delphi?

Do not use Windows. GetCurrentDirectory() to retrieve the executable file's directory. It returns the process's current working directory, which can change dynamically during the process's lifetime, so you are not guaranteed to get the correct directory every time.

To get the app's directory reliably, use Sysutils. ExtractFilePath(Sysutils. ParamStr(0)) instead.

Internally, this uses Windows. GetModuleFileName(nil) to get the full path of your app and then truncates off the executable name, leaving the desired directory path.

A truly portable application, if that is truly your question, should.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions