Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.149 Beiträge
 
Delphi 12 Athens
 
#3

AW: Wie, um den Code zu übersetzen C + + bis Delphi

  Alt 5. Nov 2013, 00:17
Und wo genau ist nun das Problem?
Die Übersetzung sieht soweit ja OK aus.
(wenn man die Adresse dann via LoadLibrary + GetProcAddress holen will)

Delphi-Quellcode:
function WIMGetImageInformation(hImage: THandle; ppvImageInfo: Pointer; pcbImageInfo: PDWORD): BOOL; stdcall;
  external 'DLLName';

// wenn Importname <> Funktionname
function WIMGetImageInformation(hImage: THandle; ppvImageInfo: Pointer; pcbImageInfo: PDWORD): BOOL; stdcall;
  external 'DLLNamename 'ImportName';

// im Delphi-Style
function WIMGetImageInformation(Image: THandle; ImageInfo: PWideChar{Pointer}; ImageInfoSize: PLongWord): LongBool; stdcall;
  external 'DLLName';

function WIMGetImageInformation(Image: THandle; ImageInfo: PWideChar{Pointer}; var ImageInfoSize: LongWord): LongBool; stdcall;
  external 'DLLName';

function WIMGetImageInformation(Image: THandle; out ImageInfo; out ImageInfoSize: LongWord): LongBool; stdcall; // oder VAR statt OUT ... funktioniert Beides
  external 'DLLName';
[edit]
PS: Suchfunktion?
http://www.delphipraxis.net/137479-w...tml#post934938
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests

Geändert von himitsu ( 5. Nov 2013 um 00:37 Uhr)
  Mit Zitat antworten Zitat