🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
1 messages
1 total messages Started by nicolasr Tue, 08 May 2001 00:04
DirectX Media Objects and the COM wizard
#1281
Author: nicolasr
Date: Tue, 08 May 2001 00:04
31 lines
1753 bytes
Hi,

is anyone out there who has some experience with DirectX Media Objects in
C++Builder?
I'm quiet new to ATL/COM. I want to compile the DMOSample from the DirectX
8.0 SDK.

I'm told to implement the IMediaObject interface. There's an IDL file
specifying the interface and a template IMediaObjectImpl which I want to
use.

Is it possible to use the COM wizard in such case at all?
The wizard wants me to either select an interface from the list or create a
new one. It seems I can't simply compile the example because it's written
for Visual C++, so I wanted to rebuild it using the wizard. I think the
trouble starts here (extracted from the example code):

...

// CSample
class ATL_NO_VTABLE CSample :
    public IMediaObjectImpl<CSample, 1, 2>,        // 1 input, 2 outputs
    public CComObjectRootEx<CComMultiThreadModel>,
    public CComCoClass<CSample, &CLSID_Sample>
{

...


I would really appreciate any ideas,
thanks Nick
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads