Einzelnen Beitrag anzeigen

Benutzerbild von Spiderpig_GER_15
Spiderpig_GER_15

Registriert seit: 17. Mär 2008
298 Beiträge
 
Delphi 7 Personal
 
#13

Re: [Andorra] seltsamster Fehler bei AdDraw.dllname:='xy.dll

  Alt 27. Feb 2009, 21: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---
  Mit Zitat antworten Zitat