Thema: Delphi Pfad zu DLL?

Einzelnen Beitrag anzeigen

JonnyGuitar

Registriert seit: 4. Jun 2004
233 Beiträge
 
#2

Re: Pfad zu DLL?

  Alt 28. Apr 2008, 09:02
moin,

ich bin mir jetzt nicht ganz sicher, aber probier das mal so, sollte klappen

Delphi-Quellcode:
function GetModuleName: string;
var
  szFileName: array[0..MAX_PATH] of Char;
begin
  FillChar(szFileName, SizeOf(szFileName), #0);
  GetModuleFileName(hInstance, szFileName, MAX_PATH);
  Result := szFileName;
end;

mfg Jonny
the only thing to fear is runnin' out of beer
  Mit Zitat antworten Zitat