Einzelnen Beitrag anzeigen

EWeiss
(Gast)

n/a Beiträge
 
#1

IInterface Delphi vs VSC

  Alt 2. Aug 2017, 14:49
Delphi.
Delphi-Quellcode:
  TStreamInfo = record
    streamType: TStreamType;
    ppmt: PAMMEDIATYPE;
    pdwFlags: Cardinal;
    plcid: Cardinal;
    pdwGroup: Cardinal;
    ppszName: PWideChar;
    ppObject: IInterface;
    ppUnk: IInterface;
  end;
C++
Code:
struct TStreamInfo {
  TStreamType streamType;
  AM_MEDIA_TYPE ppmt;
  unsigned int pdwFlags;
  unsigned int plcid;
  unsigned int pdwGroup;
  wchar_t* ppszName;
  IUnknown **ppObject;
  IUnknown **ppUnk;
};
Bin mir jetzt nicht sicher ob die Übersetzung im Header korrekt ist.
C kennt kein IInterface so wie in Delphi oder aber ich finde sie einfach nicht.

gruss
  Mit Zitat antworten Zitat