Re: error return from "connect"
- From: "Andreas Marschall [MVP TAPI]" <Andreas.Marschall@xxxxxxxxxx>
- Date: Tue, 10 May 2005 18:19:06 +0200
"Boyd" <Boyd@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:632A1ED0-BCE8-4881-B18C-C92EA4BE1169@xxxxxxxxxxxxxxxx
> I am using the SDK sample application "tapisend." I get as far as the
> following code snippet:
> ==========
> LogMessage("CreateAndConnectCall: attempting a synchronous connect");
> hr = pCall->Connect(VARIANT_TRUE);
> if (S_OK != hr)
> ==========
> The error number returned is 1. This is not one of the stated possible
> error responses for "Connect". My current setup should cause an error
> indicating "no dial tone."
> For the purpose of having a utility that can generate useful diagnostic
> messages when such things do go wrong, I need to be able to acquire the
> correct error state.
> Is there a function such as the Win32 function "GetLastError" to retrieve
> the proper error code?
Boyd,
you can use FormatMessage() to get an error description from TAPI3.DLL for the
corresponding TAPI_E_ constants like my Toto® Tool TAPI_Error_Codes does.
See my TAPI and TSPI FAQ:
Q: Where are TAPI errors codes defined ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Where_are
Can you reproduce the issue with TAPI Browser TB3x ?
Please post a TB3x.log.
See my TAPI and TSPI FAQ:
Q: Where can I download TAPI Browser ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Where_can
Q: Is there a user guide available for TAPI Browser TB3x ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_2
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion. Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: error return from "connect"
- From: Boyd
- Re: error return from "connect"
- From: Boyd
- Re: error return from "connect"
- From: Boyd
- Re: error return from "connect"
- References:
- error return from "connect"
- From: Boyd
- error return from "connect"
- Prev by Date: Re: Basic Pointers for Telephony Application
- Next by Date: Re: Basic Pointers for Telephony Application
- Previous by thread: error return from "connect"
- Next by thread: Re: error return from "connect"
- Index(es):
Relevant Pages
|