Scalabium Software |
|
| Knowledge for your independence'. | |
#98: How can I retrieve a full path of module in DLL? |
|
If you develops the dll, in some tasks you must know the full
path of this\par dll but not the path of application from which
was ran this library. var
DLLFileName: PChar;
begin
GetMem(DLLFileName, MAX_PATH+1);
if (DLLFileName <> nil) then
GetModuleFileName(hInstance, DLLFileName, MAX_PATH);
...
end;
So in pDLLFileName variable you'll have the full path value.
|
|
|
Copyright© 1998-2025, Scalabium
Software. All rights reserved. |