🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #1281

DirectX Media Objects and the COM wizard

#1281
From: 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
Technical Details
Message-ID: <3af73794$1_2@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,38818b415dd50514,start
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2001-05-07 17:08:03 PST
From: "nicolasr" <nicolasr@gmx.net>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: DirectX Media Objects and the COM wizard
Date: Tue, 8 May 2001 02:04:04 +0200
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 62.246.20.178
Message-ID: <3af73794$1_2@dnews>
X-Trace: dnews 989280148 62.246.20.178 (7 May 2001 17:02:28 -0700)
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews