Solved

DirectDraw+ActiveMovie problem...

Posted on 1997-06-02
2
460 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now