Click here to Skip to main content
15,911,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GUI thread priority Pin
rp_suman24-Jun-08 14:43
rp_suman24-Jun-08 14:43 
GeneralRe: GUI thread priority Pin
Rajesh R Subramanian23-Jun-08 21:42
professionalRajesh R Subramanian23-Jun-08 21:42 
GeneralRe: GUI thread priority Pin
rp_suman24-Jun-08 16:21
rp_suman24-Jun-08 16:21 
QuestionQuick simple question about string Pin
monsieur_jj23-Jun-08 20:16
monsieur_jj23-Jun-08 20:16 
AnswerRe: Quick simple question about string Pin
_AnsHUMAN_ 23-Jun-08 20:27
_AnsHUMAN_ 23-Jun-08 20:27 
GeneralRe: Quick simple question about string Pin
monsieur_jj23-Jun-08 20:44
monsieur_jj23-Jun-08 20:44 
AnswerRe: Quick simple question about string Pin
rp_suman23-Jun-08 20:32
rp_suman23-Jun-08 20:32 
Questionregistering uccapi Pin
kumarnitesh23-Jun-08 20:11
kumarnitesh23-Jun-08 20:11 
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
Questionhow to build the genprint sample Pin
vicky0000023-Jun-08 19:15
vicky0000023-Jun-08 19:15 
QuestionRe: how to build the genprint sample Pin
Rajesh R Subramanian23-Jun-08 19:17
professionalRajesh R Subramanian23-Jun-08 19:17 
AnswerRe: how to build the genprint sample Pin
vicky0000023-Jun-08 19:24
vicky0000023-Jun-08 19:24 
QuestionRe: how to build the genprint sample Pin
Rajesh R Subramanian23-Jun-08 19:34
professionalRajesh R Subramanian23-Jun-08 19:34 
AnswerRe: how to build the genprint sample Pin
vicky0000023-Jun-08 19:37
vicky0000023-Jun-08 19:37 
QuestionCreating shortcuts both in vista and xp Pin
VCProgrammer23-Jun-08 19:07
VCProgrammer23-Jun-08 19:07 
QuestionPicasa Web Albums Data API Pin
capint23-Jun-08 18:57
capint23-Jun-08 18:57 
AnswerRe: Picasa Web Albums Data API Pin
Rajesh R Subramanian23-Jun-08 19:05
professionalRajesh R Subramanian23-Jun-08 19:05 
QuestionHow to scroll the IE window? [modified] Pin
Michael ZY23-Jun-08 18:47
Michael ZY23-Jun-08 18:47 
QuestionFile count Pin
projectip23-Jun-08 18:43
projectip23-Jun-08 18:43 
AnswerRe: File count Pin
Naveen23-Jun-08 18:50
Naveen23-Jun-08 18:50 
GeneralRe: File count Pin
projectip23-Jun-08 19:32
projectip23-Jun-08 19:32 
GeneralRe: File count Pin
Naveen23-Jun-08 19:42
Naveen23-Jun-08 19:42 
GeneralRe: File count Pin
projectip23-Jun-08 20:13
projectip23-Jun-08 20:13 
GeneralRe: File count Pin
Naveen23-Jun-08 20:17
Naveen23-Jun-08 20:17 
GeneralRe: File count Pin
projectip23-Jun-08 20:27
projectip23-Jun-08 20:27 
GeneralRe: File count Pin
Naveen23-Jun-08 20:40
Naveen23-Jun-08 20:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.