Re: testing for RAPI init
r_z_aret_at_pen_fact.com
Date: 08/24/04
- Next message: Tim Wilson: "Re: Button Image"
- Previous message: r_z_aret_at_pen_fact.com: "Re: depends for CE"
- In reply to: ed: "Re: testing for RAPI init"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Aug 2004 14:56:27 -0400
On Mon, 23 Aug 2004 21:55:41 GMT, "ed"
<cteel04.notthis@hotmail.notthis.com> wrote:
>what error code do the actual rapi functions (like CeReadFile) return when
>the rapi hasn't been initialized?
I don't know. I just detect when they fail, and try to report the
reason. I sometimes cover specific cases, like file not found. I
definitely don't specifically check whether any fail because RAPI
failed to initialize.
>
>
><r_z_aret@pen_fact.com> wrote in message
>news:ijlki0d2856eas4jt0gp2a7ic23rpiddks@4ax.com...
>> On Mon, 23 Aug 2004 19:59:03 GMT, "ed"
>> <cteel04.notthis@hotmail.notthis.com> wrote:
>>
>>>is there a way to test for rapi initialization in my program?
>>
>> I check return codes for just about every function that returns them.
>> But not for CeRapiInit or CeRapiInitEx. The following note explains:
>> // E_FAILURE means we were already connected
>> So, my code assumes success for these calls. But then I check return
>> codes for functions that actually _use_ the connection.
>>
>>>
>>>thanks in advance,
>>>ed
>>>
>>
>> -----------------------------------------
>> To reply to me, remove the underscores (_) from my email address (and
>> please indicate which newsgroup and message).
>>
>> Robert E. Zaret, eMVP
>> PenFact, Inc.
>> 500 Harrison Ave., Suite 3R
>> Boston, MA 02118
>> www.penfact.com
>
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com
- Next message: Tim Wilson: "Re: Button Image"
- Previous message: r_z_aret_at_pen_fact.com: "Re: depends for CE"
- In reply to: ed: "Re: testing for RAPI init"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|