![]() |
Re: [Andorra] seltsamster Fehler bei AdDraw.dllname:='xy.dll
ja, denke ich schon:
Delphi-Quellcode:
procedure TForm1.FormCreate(Sender: TObject); begin AdPerCounter := TAdPerformanceCounter.Create; AdDraw := TAdDraw.Create(self); AdDraw.DllName := ExtractFilePath(ParamStr(0)) + 'andorraOGL.dll'; if AdDraw.Initialize then begin Application.OnIdle := Idle; AdImageList := TAdImageList.Create(AdDraw); with AdImageList.Add('tank_red') do begin Texture.LoadGraphicFromFile('tank_red.bmp',true,clFuchsia); end; AdImageList.Restore; angle:= 0; end else begin ShowMessage('Error while initializing Andorra 2D. Try to use another display '+ 'mode or another video adapter.'); Close; end; end; |
Re: [Andorra] seltsamster Fehler bei AdDraw.dllname:='xy.dll
Und die Fehlermeldung wird hier geworfen?
Delphi-Quellcode:
procedure TAdDllLoader.LoadLibrary(afile: string);
var InfoProc: TAndorra2DLibraryInformation; begin if FileExists(afile) then begin //If a library is already loaded, unload it if LibraryLoaded then UnLoadLibrary; {$IFDEF Win32} DllHandle := Windows.LoadLibrary(PChar(afile)); //<-- Hier {$ELSE} DllHandle := dynlibs.LoadLibrary(PChar(afile)); {$ENDIF} |
Re: [Andorra] seltsamster Fehler bei AdDraw.dllname:='xy.dll
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; |
Re: [Andorra] seltsamster Fehler bei AdDraw.dllname:='xy.dll
Du hast eine veraltete Version des Andorra 2D Quellcodes. Die aktuelle Version sieht so aus:
![]() Die "Abilities"-Funktion gibt es nicht mehr - die heißt jetzt "Properties". |
Re: [Andorra] seltsamster Fehler bei AdDraw.dllname:='xy.dll
Zitat:
|
Re: [Andorra] seltsamster Fehler bei AdDraw.dllname:='xy.dll
bin schon am Austauschen, das kam mir auch komisch vor das du da was anderes stehen hast *hope* :D
|
Re: [Andorra] seltsamster Fehler bei AdDraw.dllname:='xy.dll
Zitat:
|
Re: [Andorra] seltsamster Fehler bei AdDraw.dllname:='xy.dll
Jetzt will ich aber acuh alles richtig machen, auf welche Ornder muss ich alles die Library Verlinkung machen?
|
Re: [Andorra] seltsamster Fehler bei AdDraw.dllname:='xy.dll
Okay, hab alles, geht, dankeeeee
Hab die neue Version genommen dann klappt alles! |
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:26 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz