![]() |
AW: IInterface Delphi vs VSC
Zitat:
Danke. gruss |
AW: IInterface Delphi vs VSC
irgendwie will das immer noch nicht.
Code:
Die Rückgabe von..
BOOL KVIDEOPLAYERDEF(KVideo_GetStreamInfo)(TStreamType StreamType, DWORD index, TStreamInfo OUT StreamInfo);
Code:
ist NULL
struct TStreamInfo {
TStreamType streamType; AM_MEDIA_TYPE ppmt; unsigned int pdwFlags; unsigned int plcid; unsigned int pdwGroup; wchar_t* ppszName; IUnknown **ppObject; IUnknown **ppUnk; }; typedef TStreamInfo* pStreamInfo; Hmmm... Ob das mit den Interface doch nicht stimmt? gruss |
AW: IInterface Delphi vs VSC
Da prüft aber auch jemand seine eigenen Rückgabewerte nicht :warn: :-D Ist der Funktionsaufruf am Ende auf Seite der DLL einfach schon nicht erfolgreich?
Ansonsten: Als was ist
Delphi-Quellcode:
definiert? Macro auf
OUT
Delphi-Quellcode:
?
*
|
AW: IInterface Delphi vs VSC
Zitat:
Delphi-Quellcode:
StreamInfo hat alle werte die zur verfügung stehen.
function KVideo_GetStreamInfo(StreamType: TStreamType; index: Cardinal;
out StreamInfo: TStreamInfo): BOOL; stdcall; sie kommen aber in C++ nicht an. [DELPHI]Macro auf * verstehe ich jetzt nicht. Wenn ich die Daten analysiere sind sie vorhanden ich kann sie sehen als ToolTip wenn ich aber durch bin zeigt der ToolTip nix mehr. (Delphi) gruss |
AW: IInterface Delphi vs VSC
In C++ gibt es sowas wie
Delphi-Quellcode:
oder
var
Delphi-Quellcode:
nicht. Hab grade nochmal nachgeschaut: Das
out
Delphi-Quellcode:
Macro aus der Windows.h dient lediglich der Dokumentation und hat im Grunde aber wirklich keine Auswirkung. Du musst alle
OUT
Delphi-Quellcode:
und
var
Delphi-Quellcode:
Parameter in C++ als Pointer umsetzen, also statt
out
Delphi-Quellcode:
muss es
TStreamInfo
Delphi-Quellcode:
bzw.
pStreamInfo
Delphi-Quellcode:
sein:
TStreamInfo*
Delphi-Quellcode:
BOOL KVIDEOPLAYERDEF(KVideo_GetStreamInfo)(TStreamType StreamType, DWORD index, TStreamInfo* StreamInfo);
Der Aufruf entsprechend:
Delphi-Quellcode:
TStreamInfo streamInfo;
KVideo_GetStreamInfo(streamType, index, &streamInfo); |
AW: IInterface Delphi vs VSC
Zitat:
Seltsam aber das es hier funktioniert auch mit OUT.
Code:
Ich denke aber das liegt wohl eher am Pointer *
BOOL KVIDEOPLAYERDEF(KVideo_GetMediaProperty)(TMediaProperty* OUT MediaProperty);
gruss |
AW: IInterface Delphi vs VSC
Zitat:
Delphi-Quellcode:
macht wirklich absolut gar nichts :-D
OUT
|
AW: IInterface Delphi vs VSC
Zitat:
gruss |
AW: IInterface Delphi vs VSC
sollte ich das in Delphi
Delphi-Quellcode:
mit
ppObject: IInterface;
ppUnk: IInterface;
Delphi-Quellcode:
ersetzen oder so belassen.
ppObject: IUnknown;
ppUnk: IUnknown; Weil auch in DirectShow is es als IUnknown definiert. gruss |
AW: IInterface Delphi vs VSC
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:46 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 by Thomas Breitkreuz