Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. registering uccapi

registering uccapi

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++helpworkspace
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kumarnitesh
    wrote on last edited by
    #1

    I have an application which need to start the audio/video settings on a button click. I have written code for that: ************start of code********************************************** HRESULT hr = CoInitialize(0); if (FAILED(hr))//CoInitialize failed return hr; //Obtain a pointer to the IUccPlatform interface //by way of the cocreatable UccPlatform class. CComPtr <IUccPlatform> pIUccPlatform; hr = CoCreateInstance ( __uuidof(UccPlatform), NULL, CLSCTX_INPROC_SERVER, __uuidof(IUccPlatform), (LPVOID *)&pIUccPlatform ); if (FAILED(hr)) { AfxMessageBox(IDS_STR_ERROR_COCREATE_INSTANCE); return hr; } CComBSTR bstrAppName = _T("application"); hr = pIUccPlatform->Initialize( bstrAppName); if (FAILED(hr)) { AfxMessageBox (IDS_STR_ERROR_INITIALIZE); return false; //device settings } CComPtr<IUccMediaDeviceSettings> spMediaDeviceSettingsPtr; pIUccPlatform->QueryInterface( &spMediaDeviceSettingsPtr ); spMediaDeviceSettingsPtr->InvokeTuningWizard((OAHWND)theApp.m_pMainWnd->m_hWnd, UCCTWP_AUDIO | UCCTWP_AUDIO_NONPRIVATE | UCCTWP_AUDIO_NOTIFICATION); //AfxMessageBox(IDS_STR_ERROR_INVOKE_TUNING_WIZARD); pIUccPlatform->Shutdown(); *****************End of Code************************ and as I know we have to add the three dlls(UCCAPIRES.dll,UccApi.dll,RTMPLTFM.dll) in application project, I have done that and I also got success in that. But when I run my application on other system after clicking button to start the audio/video settings I got an error message "Error CoCreateInstance ". If any idea then please share. Configuration for apllication is WindowsXp C++ .net2005

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups