?
Solved

DirectDraw+ActiveMovie problem...

Posted on 1997-06-02
2
Medium Priority
?
471 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
deesse earned 800 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

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

764 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