amien Carbery" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, June 19, 2003 7:17 AM
Subject: Need help using TblGetItemPtr - getting wrong data
> I have a static char variable which I StrCopy data into from a db record.
I
> th
Hi there,
I read your posts about TblSetItemPtr() and TblGetItemPtr(). Both of these functions
are available
on PalmOS 3.5 so you don't need to use
tableP->items[row * tableP->numColumns + column].ptr
I didn't use TblSetItemPtr() and IblGetItemPtr() before. I do use TblSet
I have a static char variable which I StrCopy data into from a db record. I
then pass this to TblSetItemPtr.
In my table callback (which only seems to get called after all my table
populating is complete) I use TblGetItemPtr to retrieve the data for
reformatting and drawing on the cell
uot; in the callback function.
I put "f" in the cell's 'ptr' area via TblSetItemPtr(). I retrieve this via
the old syntax:
tableP->items[row * tableP->numColumns + column].ptr
(when I upgrade to SDK 5 I'll use TblGetItemPtr).
The problem: On the first cell I sen
char* someString = (char*) TblGetItemPtr(tableP, row, col);
(where...the table item pointer being retrieved is of labelTableItem type)
crashes (fatal error ) on the handspring device(OS version 3.0.1H )!!!
works fine on the emulator though : )
any explanations???
Priti
--
For
On Mon, Mar 04, 2002 at 03:04:16PM +0100, Anaïs Rey wrote:
> I would like to use this function : void * TblGetItemPtr (const
TableType
> *tableP, Int16 row, Int16 column) but this error appears when I make
the
> project : Link Error : Starter.c: 'TblGetItemPtr
On Mon, Mar 04, 2002 at 03:04:16PM +0100, Anaïs Rey wrote:
> I would like to use this function : void * TblGetItemPtr (const TableType
> *tableP, Int16 row, Int16 column) but this error appears when I make the
> project : Link Error : Starter.c: 'TblGetItemPtr
I would like to use this function : void * TblGetItemPtr (const TableType
*tableP, Int16 row, Int16 column) but this error appears when I make the
project : Link Error : Starter.c: 'TblGetItemPtr' referenced from
'MainFormHandleEvent' is undefined.
Can someone help me
T