Thanks for the pointer to the FAQ. That definitely
helped and will be a great resource in the future.
It's now working great! I initally had a couple issues
with MemPtrFree but got those worked out as well.

I figured it was basic C lang stuff and I partially
expected a response like that, but being relatively
new to both c and PalmOS there are times when I'm
unsure which one of those I'm wrestling with.

Thanks again!

Brian Preston

--- In [EMAIL PROTECTED], John Marshall
<[EMAIL PROTECTED]> wrote:
> On Tue, Feb 25, 2003 at 07:22:22AM -0800, Brian
Preston wrote:
> > I need to create a dynamically-sized array of a
struct
> > that I've defined
> [...]
> > "You merely need to cast the pointer returned by
> > MemPtrNew and assign it to a variable of type
struct
> > data*."
> > 
> > struct data* myPointer; 
> > myPointer = (struct data*)MemPtrNew(sizeof(struct
> > data));
> 
> (Close, but not quite.  You'll find what's wrong in
one of the
> references below.)
> 
> > So would my array be an array of pointers instead?
I
> > was thinking my global variable would be a pointer
to
> > the first record in the array.
> 
> Some may say this response is rude, but the reality
is that it is not.
> The best possible advice you can get in response to
your questions is
> 
>       Go and read a book.
> 
> If you cannot quite imagine entering a bookstore or
a library :-), you
> might start with the C FAQ.  Find it by typing "C
FAQ" into Google.
> Start at question 6.14, but because you are a
curious programmer you
> will find it hard to resist reading the entire
thing.
> 
>     John
> 
> -- 
> For information on using the Palm Developer Forums,
or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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

Reply via email to