你的.dll放在哪里了?
function GetCurrPath(IsAutoGetDll: boolean = true): string;
var
ModName: array[0..MAX_PATH] of Char;
begin
if ModuleIsLib and IsAutoGetDll then begin
GetModuleFileName(HInstance, ModName, SizeOf(ModName)); // 取得当前项目的路径
Result := ExtractFilePath(ModName);
end
else
Result := ExtractFilePath(ParamStr(0));
end;
function GetModuleFileName(Module: HMODULE; Buffer: PChar; BufLen: Integer): Integer;