Thema: Delphi Unit für mpglib.dll

Einzelnen Beitrag anzeigen

Benutzerbild von mirage228
mirage228

Registriert seit: 23. Mär 2003
Ort: Münster
3.750 Beiträge
 
Delphi 2010 Professional
 
#6

Re: Unit für mpglib.dll

  Alt 12. Feb 2005, 07:20
Zitat von crypti:
Ich denke ich weiß woran es hängt, nämlich am verwendeten struct /record.

Kann mir eventuell jemand sagen wie das in Delphi aussehen würde?

Delphi-Quellcode:
struct buf {
   unsigned char *pnt;
   long size;
   long pos;
   struct buf *next;
   struct buf *prev;
}
;
Was soll struct buf *next; sein? Ein struct das im struct wieder sich selbst linkt?
Hi,

ich würde mal schätzen:

Delphi-Quellcode:
type
  PByte = ^Byte;

type
  Buf = packed record
  Pnt: PByte;
  Size: LONG;
  Pos: LONG;
  Next: PBuf; // ^Buf;
  Prev: PBuf; // ^Buf;
end;
mfG
mirage228
David F.

May the source be with you, stranger.
PHP Inspection Unit (Delphi-Unit zum Analysieren von PHP Code)
  Mit Zitat antworten Zitat