Translating more from QuickTimeComponents...

"robert_staflin" <[email protected]> Mon, 05 Feb 2007 22:45:36 -0000
Newsgroups gmane.comp.lang.delphi.jedi
Message-ID <[email protected]>
Hi, everybody. I'm working on a project using mostly DirectShow, but having an QuickTime 
for an "end point". Basically I'm trying to manipulate video files with DirectShow, and 
exporting the to the QuickTime DV format.

The problem is that I think that I need to have more of the QuickTimeComponents 
translated to make it work, specifically the NewMovieExportGetDataUPP, 
NewMovieExportGetPropertyUPP and NewRoutineDescriptor functions. I've tried to declare 
them as follows:

function NewMovieExportGetDataUPP(userRoutine: MovieExportGetDataProcPtr): 
ComponentInstance; cdecl; external 'qtmlClient.dll';

function NewMovieExportGetPropertyUPP(userRoutine: MovieExportGetPropertyProcPtr): 
ComponentInstance; cdecl; external 'qtmlClient.dll';

function NewRoutineDescriptor(theProc: ProcPtr; theProcInfo: TProcInfoType; theISA: 
ISAType):  UniversalProcPtr; cdecl; external 'qtmlClient.dll';

However, when I try the following:

    // Add movie export data source
    qtComp := MovieExportAddDataSource(m_Exporter,
                                        VideoMediaType,
                                        100000000,
                                        videoTrackID,
                                        NewMovieExportGetPropertyUPP(VideoGetPropertyCallback),
                                        NewMovieExportGetDataUPP(VideoGetDataCallback),
                                        self);

... I get the error "E2009 Incompatible types: 'Calling conventions differ'.

Have I done the translating from C wrong, or have I done some other obvious mistake?

I'd be overwhelmingly happy for any input!

/Robert



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Delphi-JEDI/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/Delphi-JEDI/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/