Solved

DirectDraw+ActiveMovie problem...

Posted on 1997-06-02
2
461 Views
Last Modified: 2013-12-03
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...
0
Comment
Question by:sdeguire
2 Comments
 
LVL 1

Accepted Solution

by:
deesse earned 200 total points
ID: 1397818
You have to init your interface like that

hr = CoCreateInstance(CLSID_VideoRenderer, NULL,                                     CLSCTX_INPROC_SERVER,
                                    IID_IDirectDrawVideo, (void **) &pDD);

Then you  can access like that

pDD->SetDirectDraw(pDirectDraw);

You have to know then DirectDraw can be initialize more then
once, so if you got a problem to Render a file, it's probably something else.

0
 

Author Comment

by:sdeguire
ID: 1397819
Thank you deesse for your answer...It's work very well...
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question