Correctly locate the dll

This commit is contained in:
ronaldhordijk 2005-09-03 11:18:54 +00:00
parent 51736cc395
commit a96726e8db

View File

@ -476,6 +476,9 @@ var
implementation
uses
SysUtils;
var
SaveExit: pointer;
DLLHandle: THandle;
@ -495,9 +498,11 @@ begin
{$IFNDEF MSDOS}
ErrorMode := SetErrorMode($8000{SEM_NoOpenFileErrorBox});
{$ENDIF}
// DLLHandle := LoadLibrary('bmdll32.DLL');
// if DLLHandle < 32 then
DLLHandle := LoadLibrary('C:\brainm.20a\bmdll32.DLL');
DLLHandle := LoadLibrary('bmdll32.DLL');
if DLLHandle < 32 then
DLLHandle := LoadLibrary('C:\brainm.20\bmdll32.DLL');
if DLLHandle < 32 then
DLLHandle := LoadLibrary(Pchar(IncludeTrailingPathDelimiter(ExtractFilePath(Paramstr(0))) + '..\bmdll32.DLL'));
if DLLHandle >= 32 then begin
DLLLoaded := True;