TAPI , COM
-
Dear Friends, I try to work with TAPI3.0 that is COM based, so in create an COM object it returns "CoCreateInstance on TAPI failed"
ITTAPI *TObj; HRESULT hr; hr = CoCreateInstance( CLSID_TAPI, NULL, CLSCTX_INPROC_SERVER, IID_ITTAPI, (LPVOID *)&TObj ); if ( FAILED(hr) ) { MessageBox("CoCreateInstance on TAPI failed"); }
is there any one help me ? -
Dear Friends, I try to work with TAPI3.0 that is COM based, so in create an COM object it returns "CoCreateInstance on TAPI failed"
ITTAPI *TObj; HRESULT hr; hr = CoCreateInstance( CLSID_TAPI, NULL, CLSCTX_INPROC_SERVER, IID_ITTAPI, (LPVOID *)&TObj ); if ( FAILED(hr) ) { MessageBox("CoCreateInstance on TAPI failed"); }
is there any one help me ? -
What is the hr result when CoCreateInstance Fails? look the result in the error lookup. hope this helps Yaron Ask not what your application can do for you, Ask what you can do for your application
-
There ya go :) in order to call CoCreateInstance, you need to load the COM libraries. this is done by CoInitialize method (check out MSDN for more information) don't forget to call CoUninitialize when done using the COM libraries good luck Yaron:sigh: Ask not what your application can do for you, Ask what you can do for your application
-
There ya go :) in order to call CoCreateInstance, you need to load the COM libraries. this is done by CoInitialize method (check out MSDN for more information) don't forget to call CoUninitialize when done using the COM libraries good luck Yaron:sigh: Ask not what your application can do for you, Ask what you can do for your application