Of which - the executable calling the DLL or the DLL. Would ParamStr(0) suffice? (This actually calls GetModuleFileName with a 0/Null value), so returns the executable name. A bit more difficult to get the DLL path - need to have the right paramater to GetModuleFileName, so in this case ParamStr(0) would be no good.
 
Myles.
 
-----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