Rick,

>Also, the 3.1 Systraps.h doesn't seem to list TxtPrepFindString.
>Can you tell me the trap number for it, so I can link it in
>to my (pre-3.1) code?

1. The TxtPrepFindString routine is dispatched via the IntlDispatch trap.
All of the TxtXXX routines are the same; a routine selector is loaded into
register D2, and the IntlDispatch trap uses this to jump to the correct
routine. The TextMgr.h/IntlMgr.h headers take care of setting this stuff up
for you.

2. The IntlDispatch trap was NOT implemented in versions of Palm OS prior
to 3.1. The trap number existed, but it was unused in 2.0/3.0. This means
that you DO NOT want to call this trap on earlier versions of the OS.

The right thing to do is to link the PalmOSGlue.lib (will be part of the
3.1 SDK) into your app and call TxtGluePrepFindString - this routine checks
for the presence of the Text Mgr, and if so it will call through to
IntlDispatch, otherwise it will do the right thing for the Latin character
encoding (which was the only one that existed prior to 3.1).

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200 (direct) +1 408-261-7550 (main)


Reply via email to