I want to find one substring in other, i use TxtFindString, but before i use TxtGluePrepFindString to set the
search, the 2 string are same

Not sure what this means.

but inSource not are the same address as inSource.

Same comment as above.

When i run with the emulator say this:

Filtra (1.0) called SysFatalAlert with the message:
"TextMgr.c, Line:945, Dest buffer too small".

Any idea?

First, whenever you post an error message generated by the OS, it's very useful to include the OS version number, the device's locale (language), and whether you're encountering this with a real device (if so, which one) or POSE/PalmSim.


Second, as Gavin noted in his response you'll get this error from Txt[Glue]PrepFindString if the last parameter (iDstSize) is zero.

One clarification to what Gavin said - the iDstSize parameter is actually the size of your destination buffer, not the length of the destination string. In other words, the value you pass in should include space for the byte at the end of the destination buffer string.

-- Ken
--
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to