cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Walkthrough Wednesdays

Question about MakeCall code example

44
Views
0
Helpful
0
Comments
This document was generated from CDN thread

Created by: Nofirstname Nolast on 07-04-2009 06:58:18 PM
Hi folks,
 
OK, I'm a bit rusty with my C/C++ so this is probably a stupid question. 
 
Where are CtCall and CtLine defined for the MakeCall example in the TAPI developer's guide? They do not appear to be part of the TAPI interface.
 
Thanks.

Subject: RE: Question about MakeCall code example
Replied by: David Staudt on 08-04-2009 12:31:57 AM
The Make Call example in the Developer Guide is just a fragment (function)...not really compilable/runnable.
 
The two variables you're referring to are declared in this section:
 
...
//LPCSTR pszTranslatable;
CString sDialable;
CString theDestNumber(destNumber);
CtCall* pCall;
CtLine* pLine=CtLine::FromHandle((HLINE)hLine);
if (pLine==NULL) {
    tracer->tracef(SDI_LEVEL_ERROR, "CTACtrl::MakeCall : pLine == NULL\n");
    return S_FALSE;
...
Content for Community-Ad