writing a dll which returns ExtractFilePath(Paramstr(0)) will/should return the correct location of the exe calling on the dll because the dll is running in the same memory space.
 
i am assuming here that you don't care about the dll location, only the cobal exe
-----Original Message-----
From: James Sugrue [mailto:[EMAIL PROTECTED]
Sent: Friday, 21 March 2003 8:58 a.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Getting the FullPath of running application

Does anyone know of an API call to get the Full Path Name of an executable. It needs to be a WinApi call, because I want to export it in a .dll to a COBOL program.
 
I am pretty sure GetFullPathName only returns the current directory.

Reply via email to