Solved

DirectDraw+ActiveMovie problem...

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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

728 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