I'm new in Direct Show

I tried DirectShow programming with MFC using VisualStudio Proffesional 2013.
I had many experiences of programming with MFC and Visual C++ 6.0 and older.
Now, I have a problem in line 27 of following source code.
The m_pGraphBuilder->QueryInterface() returns "0x00773108<No Information. Cannot load Symbols of quartz.dll>".
I don't understand at all of this message.
Can somebody help me?
01: CMrlView::CMrlView()
02: : CFormView(CMrlView::IDD)
03: {
04: // TODO: 構築コードをここに追加します。
05: m_pGraphBuilder = NULL;
06: m_pMediaControl = NULL;
07: CoInitialize(NULL);
08: }
09:
10: CMrlView::~CMrlView()
11: {
12: CoUninitialize();
13: if (m_pMediaControl != NULL) { m_pMediaControl->Release(); }
14: if (m_pGraphBuilder != NULL) { m_pGraphBuilder->Release(); }
15: }
16:
17: void CMrlView::OnInitialUpdate()
18: {
19: CFormView::OnInitialUpdate();
20: GetParentFrame()->RecalcLayout();
21: ResizeParentToFit();
22:
23: if (m_pMediaControl != NULL) { m_pMediaControl->Release(); }
24: if (m_pGraphBuilder != NULL) { m_pGraphBuilder->Release(); }
25: if (CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, IID_IGraphBuilder, (void **)&m_pGraphBuilder) == S_OK)
26: {
27: if (m_pGraphBuilder->QueryInterface(IID_IMediaControl, (void **)m_pMediaControl) == S_OK)
28: {
29: if (m_pGraphBuilder->RenderFile(L"C:\\Users\\naoki\\Videos\\g.mpeg", NULL) == S_OK)
30: {
31: m_pMediaControl->Run();
32: }
33: }
34: }
35: }

For COM, you should not do "== S_OK". Instead you use the SUCCEEDED (or FAILED) macro.
Try:
HRESULT hr = CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, IID_IGraphBuilder, (void **)&m_pGraphBuilder);
if (SUCCEEED(hr))
hr = m_pGraphBuilder->QueryInterface(IID_IMediaControl, (void **)m_pMediaControl);
if (SUCCEEDED(hr))
hr = m_pGraphBuilder->RenderFile(L"C:\\Users\\naoki\\Videos\\g.mpeg", NULL);
if (SUCCEEDED(hr))
m_pMediaControl->Run();
What exactly is the hr value from line 27? Your pasted message makes it look like it's an address, not an HRESULT.
BTW, you should enable the Microsoft Symbol Server for your development system. See
KB311503

Similar Messages

  • TS1314 I HAVE GOT THE NEW ipad FOR ONLY 2 DAYS, I HAVE MANAGED TO DO EVERYTHING EXCEPT THE TWO MENTIONED THINGS (1. TO SEND AT LEAST OLD OR NEW PHOTOS DIRECTLY FROM MY NEW  ipad TO FaceBook and videos to both directly from my new ipad to FaceBook and YouT

    FORGOTEEN......... VERY SORRY ABOUT IT BECAUSE THE NEW iPad is BEYOND FROM MY ANY EXPECTATIONS......... IT IS THE FIRST TIME I TRY (USE) AN APPLE PRODUCT............  I AM REALLY VERY IMPRESSED FROM THAT UNIMAGINABLE PRODUCT!!! APART THE TWO MENTIONED PROBLEMS (EVERYTHIN NEW TAKES TIME TO BE LEARNT) IT IS REALLY THE MOST PERFECT WEB TOOL I HAVE EVER USED SO FAR (I DO NOT WORK FOR THE APPLE AND I AM NOT PAID FOR A RELEVANT ADVERTISMENT, NEITHER) -  PLEASE SHOW ME IN A SIMPLE WAY (I AM NOT FAMILIAR WITH THOSE MACHINES BUT THEY ARE VERY USEFULL TO ALL OF US NOWADAYS), HOW TO POST DIRECTLY AN IMAGE FROM MY NEW ipad to FaceBook and the second one, in which way I CAN COPY - SYNC MY HD PHOTOS TO MY NEW ipad (I DID SO WITH MY ALL MY EMAIL ADDRESSES/CONSTACTS  FROM THE MS OUTLOOK TO MY NEW iPAD DIRECTLY. I HOPE THERE WILL BE NO PROBLEMS - DIFFICULTIES TO PLACE VIDEOS DIRECTLY FROM MY NEW ipad to BOTH FACEBOOK AND YOUTUBE, THANS FOR YOUR UNDERSTANDING AND YOUR EFFORTS TO HELP ME, GREETING TO ALL OF YOUR FROM ATHENS, GREECE, ENJOY WITH THE NEW ipad, IT IS A FANSTASTIC WEB ETC TOOL
    CONSTANTINOS SPYROPOULOS
    ATHENS, GREECE

    Have you read my reply to your other thread : https://discussions.apple.com/message/18373620#18373620 ?
    For Facebook try one of the facebook apps e.g. the 'official' Facebook app
    To sync photos, connect and select your iPad on the left-hand side of your computer's iTunes, and on the right-hand side there should be a series of tabs, one of which should be Photos - if you select that tab you can then select which photo folders to sync to the iPad. There is a bit more info on this page : http://support.apple.com/kb/HT4236 . You will need to sync all the photos that you want on the iPad together in one go as only the most recent photo sync remains on the iPad - not including photos in a subsequent sync is how you delete them from the iPad.
    (And don't type in capitals, it is considered SHOUTING so people are less likely to reply, and it makes it harder to read)

  • After download and installation of PS PE12 I have problems starting the programm. After selecting video and new project nothing happens, only the colorbar below new project is showing

    New computer.
    After download and installation of PS PE12
    I have problems starting the programm, double clicking on the icon.
    After selecting video and new project nothing happens, only the colorbar below new project is showing, nothing happens.
    (expected was to activate the program and the sarting the PE12)
    PSE12 runs fine
    System:
    WIN8.1 / i7 /16GB RAM

    New computer.
    After download and installation of PS PE12
    I have problems starting the programm, double clicking on the icon.
    After selecting video and new project nothing happens, only the colorbar below new project is showing, nothing happens.
    (expected was to activate the program and the sarting the PE12)
    PSE12 runs fine
    System:
    WIN8.1 / i7 /16GB RAM

  • How do I get my new Mac to show all itunes music that shows up on my PC?

    My PC shows some 600 songs when I plug in my ipod, however when I plug in the ipod to my new mac, itunes shows only the 70 songs that I purchased--not the ones that I put on the ipod from old CD's etc.--many of which are no longer available to download. Obviously, I need all 600 songs to show on itunes in order to create playlists, delete songs, etc. Apple says that ONLY reinstalling all songs will work. Any other suggestions?
    [email protected]

    You will need a program such as Senuti or PodWorks to transfer the other tunes back to the Mac.
    The iPod is one way affair except for purchase tunes/video.
    MJ

  • I have previously viewed movies and TV Shows on my IPHONE that I want to delete and free up space so that I can buy new movies/TV show to watch.  How do I get them off my IPHONE and my ITUNES account?

    I have previously viewed movies and TV Shows on my IPHONE that I want to delete and free up space so that I can buy new movies/TV show to watch.  How do I get them off my IPHONE and my ITUNES account?

    Hey RR6705,
    If you would like to delete previously purchased content off of your iPhone, you may find the steps outlined in the following article helpful:
    How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store - Apple Support
    Cheers,
    - Brenden

  • My old PC broke, it was the only pc my classic was sync with. New PC only shows 1 song (recent purchase) so am worried about sync to it in case I lose the list on my ipod which is still intacted. How can I transfer my list to new PC

    My old PC broke, it was the only pc my classic was sync with. New PC only shows 1 song (recent purchase) so am worried about syncing to new PC in case I lose the list on my iPod, which is still intacted. How can I transfer my list to new PC?

    I'm having a similar problem, but I do have the key and is not working anyway.
    My old pc was running on windows 7 and my new one is an apple running on Lion.
    My phone is an Iphone IV and I can see all the bookmarks there.
    In order to sync, what I did was click on the "I don't have the device with me", I entered the key that was provided and the process finish ok. It says congratulations, etc, etc.
    But the bookmarks are not there, I tried merging data and replacing data on this computer options but is the same.
    Any suggestions?

  • I cannot find imported mail boxes. if i try to setup a new mailbox, it shows the existence of the mailboxes that i am looking for in the location drop down menu. where would they be located?

    i cannot find imported mailboxes. if i try to setup a new mailbox, it shows the existence of the mailboxes under location/on my mac. they do not show up in the mailbox list. where would they be located so that i can retrieve them?

    Did you quite Mail and relaunch?
    Your imported mail is stored in a new mailbox called “Import.” To reorganize imported messages, create new mailboxes and drag folders and messages from the Import mailbox to other mailboxes. When you’re done, you can delete the Import mailbox.
    If you don’t see your mailboxes in Mail, choose View > Show Mailbox List; empty mailboxes aren’t imported.

  • New tabs are not updating the names of the sites they have loaded. When I open a new tab and load a site, the tab simply stays named "New Tab". When I open a link in a new window, it shows "Connecting..." even while its fully loaded.

    New tabs are not updating the names of the sites they have loaded. When I open a new tab and load a site, the tab simply stays named "New Tab". When I open a link in a new window, it shows "Connecting..." even while its fully loaded.

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]

  • Direct Show causing "A device attached to the system is not functioning"

    Hello, 
    I've been using direct show for about a year to connect to four webcams. I have an intermittent problem where by one of the cameras (at random) will not display the live feed. This could not happen for several weeks possibly months and then suddenly the
    camera dies. 
    I run the following bit of code and receive error code -2147024865.
                 IMediaControl mediaCtrl = (FilterGraph)m_filterGraph as IMediaControl;
                   hr = mediaCtrl.Run();
               DsError.ThrowExceptionForHR(hr);
    In Hex this equates to 8007001F. From doing a bit of googling I found that this means a "A device attached to the system is not functioning".
    No other application uses these webcams and nothing has changed to them physically. Direct Show, seems to make this camera unusable at random times.
    Has anybody else experienced this problem and over came it?
    Thank you in advance,
    Mike

    Hi Roman, 
    Thank you for your reply. I'm using a Logitech webcam and this camera is used by the Logitech controller software. This allows us to control the zoom, pan, focus and camera settings whilst connected to the camera in C# application. When this problem occurs,
    the webcam device still shows up in device manager and the settings of the webcam state that the device is working properly.
    I thought it may of been introduced by a possible memory leak that causes the camera to not respond, or that when the application closes it would leave the camera in a unusable state. 
    I've contacted Logitech to ask about drivers for the webcam and they state that it uses windows plug and play drivers. These are currently up to date.
    The reason I thought that it may of been introduced by direct show is because these cameras have been used before on other products but using different software, Steribar (a software tool to use the view of a webcam as a cheap barcode reader), and haven't
    experienced this problem with the cameras with this software. However very intermittently the custom C# app that I have created causes this problem. 
    Thank you for you time.
    Mike

  • My new ipod touch shows up as a cannon camera.

    My new ipod touch shows up as a cannon camera. I cannot upload itunes to it if my windows xp cannot identify.
    Every thing was working with ipod shuffle.
    Help resolve and use new ipod touch please!

    this usually means you either have a screenshot or a saved photo, go to the photos app and make sure that there isn't a section that is titled "Saved Photos" or "Camera Roll" if there is delete the photos from this section by clicking the picture, click it when the photo goes full screen and a menu option should pop up, push the icon that looks like a trash can and press "delete photo". Now the ipod should not show as a camera in windows

  • I changed the password to one of my gmail accounts. My MacBook Air accepts the new password and shows me email, my iPhone 5s tells me it's not a valid password. In settings, I change the password and pw is accepted. How can I get 5s to accept new pw?

    I changed the password to one of my gmail accounts. My MacBook Air accepts the new password and shows me email, my iPhone 5s tells me it's not a valid password and does not show me email. In settings, I change the password and pw is accepted. How can I get 5s to accept new pw?

    CORRECTION! GMAIL accepts new pw and shows me email. Mail on MacBook Air and iPhone 5s do not accept new gmail pw. What can I do to get my apple products to accept my new gmail pw?

  • TS3297 every time I try to download iTunes in my new computer it shows me an error message

    Every time I try to download iTunes in my new computer it shows me an error message that says The installer has insuffucuent privileges to acces this directory C:/program files (x86)/iTunes. The installation cannot continue. log on as administrator or contact your system administrator.. retry or cancel and it doesn't le me go forward than this I have already contact HP and we fixed it I mean we installed iTunes 64 bit, but the minute I put my iPhone to sink it it says that I dont have the new version of iTunes whici I've just already installed..this problem has been like this for more that 3 months I need an assitance because my phone really needs to be sink because it is acting weard and slow... Other than that my husband and I are thinking seriously change our iPHONE 4S for samsung phones with less probles instead of buying the new iPhone 5 because of this dull reason...Thank you for your help!

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • When i m open any link in new tab its shows nothing its browse and showing blank page

    for eg when i search some thing in google search many link of websites are showing in list when i click any link to open with new tab it showing blank page

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Camera new d810 not showing pix up in raw files in elements 11

    camera new d810 not showing pix up in raw files in elements 11 and lightroom 4

    DNGC 8.7 can be found, here:  http://www.adobe.com/downloads/updates/
    You can purchase upgrades to LR and/or PSE, here:
    http://www.adobe.com/products/catalog/software._sl_id-contentfilter_sl_catalog_sl_software _sl_mostpopular.html

  • When i start a new email, it shows all of my old contacts. how do i get rid of the ones i dont want? they are not in my contacts info.

    when i start a new email, it shows some of my old email addresses. how do i get rid of the ones i dont want? they are not in my contacts info.

    Unfortunately the Mail app on the iPad/iPhone/iPod Touch does have the option to clear previous recipients. If you don't want to live with it, the only way to remove these cached email addresses from the Mail application is by restoring the iPad/iPhone/iPod Touch as a new iPad/iPhone/iPod.  If you restore from backup, the cache is also restored.
    This article shows you the screens you will see during the restore:  http://support.apple.com/kb/HT1414

Maybe you are looking for