CLSID for TAPI
-
i m developing a small telephony app usig TAPI. to intitialoze tapi i have to get ITTAPI ptr. ITTAPI *gpTapi; HRESULT res = CoInitialize(NULL); CoCreateInstance(CLSID_TAPI,NULL,CLSCTX_INPROC_SERVER,IID_ITTAPI,(LPVOID *)&gpTapi); gpTapi->Initialize(); i have added tapi3.h and also give link to Uuid.lib. At compile time it gives no error but at link time it gives error "unresolved symbol _CLSID_TAPI" and same error for "IID_ITTAPI". any one hav idea wats hapening. how can i find CLSID for TAPI and IID for ITTAPI. plz help
-
i m developing a small telephony app usig TAPI. to intitialoze tapi i have to get ITTAPI ptr. ITTAPI *gpTapi; HRESULT res = CoInitialize(NULL); CoCreateInstance(CLSID_TAPI,NULL,CLSCTX_INPROC_SERVER,IID_ITTAPI,(LPVOID *)&gpTapi); gpTapi->Initialize(); i have added tapi3.h and also give link to Uuid.lib. At compile time it gives no error but at link time it gives error "unresolved symbol _CLSID_TAPI" and same error for "IID_ITTAPI". any one hav idea wats hapening. how can i find CLSID for TAPI and IID for ITTAPI. plz help
I Too have Face this type of problem many time. but i get Successful evey time by applying little hack like you are writing this way MATRIX- wrote: CoCreateInstance(CLSID_TAPI,NULL,CLSCTX_INPROC_SERVER,IID_ITTAPI,(LPVOID *)&gpTapi); and i write this this way.
CoCreateInstance(__uuidof(TAPI),NULL,CLSCTX_INPROC_SERVER,__uuidof(ITTAPI),(LPVOID *)&gpTapi);
but using this hack my above code Run every time,gods Know why?? ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk