Registriert seit: 17. Mär 2008
298 Beiträge
Delphi 7 Personal
|
Re: [Andorra] seltsamster Fehler bei AdDraw.dllname:='xy.dll
27. Feb 2009, 22:46
Delphi-Quellcode:
procedure TAdDllLoader.LoadLibrary(afile: string);
var
InfoProc:TAndorra2DLibraryInformation;
AbilitiesProc:TAndorra2DLibraryAbilities;
begin
if fileExists(afile) then
begin
if LibraryLoaded then
begin
UnLoadLibrary;
end;
{$IFDEF Win32}
DllHandle := Windows.LoadLibrary(PChar(afile));
{$ELSE}
DllHandle := dynlibs.LoadLibrary(PChar(afile));
{$ENDIF}
if LibraryLoaded then
begin
@CreateApplication := GetProcAddress(DllHandle, ' CreateApplication');
//Get information
@InfoProc := GetProcAddress(DllHandle, ' Andorra2DLibraryInformation');
InfoProc(LibInfo);
//Get abilities
@AbilitiesProc := GetProcAddress(DllHandle, ' Andorra2DLibraryAbilities');
AbilitiesProc(LibAbilities); //<=== Hiernach
end;
end;
---Zufall ist das Inkognito Gottes---
|