Ask a questionAsk a question
 

AnswerCLSID_DVBSLocator2 defined anywhere?

  • Wednesday, November 04, 2009 5:39 AMemNull Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    Hello,

    I'm using VS2008 + Windows SDK 7.0

    I got following error compiling this:

    CComPtr<IDVBSLocator2> pDVBSLocator2;<br/>
    hr = pDVBSLocator2.CoCreateInstance(CLSID_DVBSLocator2);<br/>
    if (FAILED( hr)) return hr;<br/>
    hr = pDVBSLocator2->put_DiseqLNBSource(DiseqLNBSourceVal);<br/>
    if (FAILED( hr)) return hr;
    
    error C2065: 'CLSID_DVBSLocator2' : undeclared identifier

    It was not defined in Tuner.h.....

    Any idea would be greatly appreciated.

Answers

  • Wednesday, November 04, 2009 7:03 AMRoman RyltsovMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    I'd try querying DVB-S Locator for this interface:

    CComPtr<IDVBSLocator2> pDvbSLocator;
    HRESULT nResult = pDvbSLocator.CoCreateInstance(CLSID_DVBSLocator);
    

    I think this has chance to work out, and with Windows 7 only as documentation states.



    http://alax.info/blog/tag/directshow
    • Marked As Answer byemNull Friday, November 06, 2009 3:53 AM
    • Unmarked As Answer byemNull Wednesday, November 04, 2009 10:54 AM
    • Marked As Answer byemNull Wednesday, November 04, 2009 8:55 AM
    •  

All Replies

  • Wednesday, November 04, 2009 6:38 AMRoman RyltsovMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    What makes you think CLSID_DVBSLocator2 exist at all?

    http://alax.info/blog/tag/directshow
  • Wednesday, November 04, 2009 7:01 AMemNull Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Roman, To be honest, I had no clue. I was going through a DVB-S sample and the codes were like this:

    CComPtr pDVBSLocator;
    hr = pDVBSLocator.CoCreateInstance(CLSID_DVBSLocator);
    if (FAILED( hr)) return hr;
    hr = pDVBSLocator->put_CarrierFrequency(Frequency_kHz);
    if (FAILED( hr)) return hr;
    hr = pDVBTuneRequest->put_Locator(pDVBSLocator);
    if (FAILED (hr)) return hr;
     hr = pITuner->put_TuneRequest(pDVBTuneRequest);

    So I thought for DVB-S2 there would be a CLSID as well.....

    Thanks for the reply
    • Edited byemNull Wednesday, November 04, 2009 7:05 AM
    •  
  • Wednesday, November 04, 2009 7:03 AMRoman RyltsovMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    I'd try querying DVB-S Locator for this interface:

    CComPtr<IDVBSLocator2> pDvbSLocator;
    HRESULT nResult = pDvbSLocator.CoCreateInstance(CLSID_DVBSLocator);
    

    I think this has chance to work out, and with Windows 7 only as documentation states.



    http://alax.info/blog/tag/directshow
    • Marked As Answer byemNull Friday, November 06, 2009 3:53 AM
    • Unmarked As Answer byemNull Wednesday, November 04, 2009 10:54 AM
    • Marked As Answer byemNull Wednesday, November 04, 2009 8:55 AM
    •