FUNCTION FkGetDllFile():STRING;
VAR bTempCHAR;
BEGIN
bTemp:=PCHAR(AllocMem(1024+1))
GetModuleFileName(0,bTemp,1024);
Result:=STRING(bTemp);
FreeMem(bTemp);
END;
function ReadDLLPath : String;
var
DLLPath : String;
FN: array[0..MAX_PATH- 1] of char;
begin
SetString(DLLPath, FN, GetModuleFileName(hInstance, FN, SizeOf(FN)));
DLLPath := ExtractFileDir(DLLPath);
if Copy(DLLPath,Length(DLlPath),1) <> '/' then
DLLPath := DLLPath+'/';
Result := DLLPath;
end;