ich hab ein Problem beim laden der libPNG12.dll. Das ganze sieht so aus:
Code: Alles auswählen
{...}{$ifdef WINDOWS}
const
Kernel32 = 'kernel32.dll';
function LoadLibrary(lpFileName: pAnsiChar): LongWord; stdcall; external Kernel32 name 'LoadLibraryA';
function FreeLibrary(hModule: LongWord): LongBool; stdcall; external Kernel32 name 'FreeLibrary';
function GetProcAddress(hModule: LongWord; lpProcName: pAnsiChar): Pointer; stdcall; external Kernel32 name 'GetProcAddress';
{$else}
{...}
libPNG_Handle := LoadLibrary(pAnsiChar(libPNG_Name)); //libPNG_Name = libpng12.dll
{...}
Code: Alles auswählen
function png_access_version_number: png_uint_32; cdecl external 'libpng12.dll';
Iwie hab ich das Gefühl, das er die DLL nicht finden kann. Ich hab extra nochma
Code: Alles auswählen
SetCurrentDir(ExtractFilePath(Application.ExeName));
MfG & Thx Bergmann