Link to home
Start Free TrialLog in
Avatar of sdeguire
sdeguire

asked on

DirectDraw+ActiveMovie problem...

I want to know how my application can use DirecDraw interface from DirectX3 and the AvctiveMovie interface,
because now the  both in two different apps work fine
but in the same apps look's bad and the way it's look to
me I got to pass somehow to ActiveMovie de DirectDraw pointer I create but doesn't work like the way I think

here's my code where I initialize some interface for
ActiveMovie :

CoCreateInstance(CLSID_FilterGraph, NULL,                  CLSCTX_INPROC_SERVER,                                       IID_IGraphBuilder,(void **) &pGB);

pGB->QueryInterface(IID_IMediaEvent,(void **)&pME);
pGB->QueryInterface(IID_IMediaPosition,(void**)&pMP);
pGB->QueryInterface(IID_IVideoWindow,(void**)&vMP);
pGB->QueryInterface(IID_IMediaControl,(void **)&pMC);
////////////////////////////////////////////////////////////
// Why this query don't work like others ????
pGB->QueryInterface(IID_IDirectDrawVideo, (void **)&pDD);
pDD->SetDirectDraw(pDDraw);

Thank You in advance for your great help...
ASKER CERTIFIED SOLUTION
Avatar of deesse
deesse

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sdeguire
sdeguire

ASKER

Thank you deesse for your answer...It's work very well...