At 22:03 2002-11-24 -0800, you wrote:
Ben,
Thanks for the info.
> In short, the "static" keywords are used to keep CodeWarrior from
> complaining about the lack of prototypes for these functions.
BTW, this isn't a CodeWarrior forum, is it?! One mustn't assume... ;-)
Agreed... however, all of
Hi Paul,
I guess gcc is not as strict as other C-compilers around. You could use
-Wall and it will warn you about not declared prototypes, at least if
the function return value differs from the default (int).
I use prototypes for all my functions regardless, if only used inside a
module and th
I'm not sure you can do it from the database alone, but you should be able
to tell from a record in the database.
If you have a handle (or pointer) to a record in the database you can call
MemHandleHeapID (or MemPtrHeapID) to retrieve the heap id in which the
record resides. You can then pass that
Ben,
Thanks for the info.
> In short, the "static" keywords are used to keep CodeWarrior from
> complaining about the lack of prototypes for these functions.
BTW, this isn't a CodeWarrior forum, is it?! One mustn't assume... ;-)
> But the compiler is complaining because it either wants a proto
How can I know the database is store in ROM or RAM ?
I can not find an API to do so...
How can I know ?
--
Alex
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
Arg. It's late, I'm tired, and I made some silly mistakes in that... namely
dereferencing some pointers, and fixing a compiler warning. So here's the
-real- code (I think, there may still be issues in it):
Char *p, *q;
Char *packed;
Char *field[NUM_FIELDS];
Char
> I'll also give the code you posted a try.
Try this (boy, I'm enjoying this problem... ;)
Char *p, *q;
Char *packed;
Char *field[NUM_FIELDS];
Char *fieldp = field;
UInt32 packed_size = 0;
UInt16 i;
// First pass, find the packed size of th
>Subject: Re: 3 records
>From: Jim Cooper <[EMAIL PROTECTED]>
>
>> is the list widget the right UI to show so much data?
>
>I wouldn't normally let a user scroll through that much data on a
>desktop PC, let alone a PDA.
>
>There is actually another question here : is it **really** appropriat
At 08:27 2002-11-24 -0800, you wrote:
From: "Ben Combee" <[EMAIL PROTECTED]>
>
> In short, the "static" keywords are used to keep CodeWarrior from
> complaining about the lack of prototypes for these functions.
Well, I guess that's one way of looking at it--to shut the compiler up! :)
But the c
Yes, it is something that normally works, but since
you explicitely mentioned the Treo 180 that I had
sitting here on my desk, I figured I'd give it a
quick try ;-) I have no idea what you could be
doing wrong. Does the same prc work on other devices?
Thanks again for the suggestion Oliver. I h
Regarding the C function floor, it's not part of the PalmOS library,
you'll have to use MathLib. You can try searching for it in PalmGear
under the development section.
On 24 Nov 2002 at 22:08, Roger Womack wrote:
> I'm trying to overload the '!=' operator thus :-
> bool operator != (const C
From: "Roger Womack" <[EMAIL PROTECTED]>
> bool operator != (const CFoo& s1, const CFoo& s2);
>
> but the compiler gives the following :-
>
> Error : illegal 'operator' declaration
> stdafx.h line 50bool operator != (const CFoo& s1, const CFoo& s2);
Looks like CFoo hasn't been declared. T
I'm trying to overload the '!=' operator thus :-
bool operator != (const CFoo& s1, const CFoo& s2);
but the compiler gives the following :-
Error : illegal 'operator' declaration
stdafx.h line 50bool operator != (const CFoo& s1, const CFoo& s2);
Can anyone please tell me what I'm d
"DeVon Fowler" <[EMAIL PROTECTED]> wrote in message
news:102454@palm-dev-forum...
>
> More clearly stated:
> At form close the extended gadget receives a callback
> message with a cmd value of formGadgetDeleteCmd. To
> delete the gadget data a call to FrmGetGadgetData() is
> required to retrieve t
Hi Robert,
I need some advice. I'm writing an application that
will store a word list of 12,000 words that will be
used for spell-checking the word that the user inputs
(basically a look-up dictionary).
I'm considering different ways of storing this word
list in my application. Since this is a
Michel,
you can copy a 0-terminated string with StrCopy (it actually only works
for such a string). StrCopy will add a 0-byte at the end of the
destination string. StrNCopy (the safe version of StrCopy) will not add
a 0-byte to the end of destionation, if (and only if) the space for the
destin
Thank you!
"Ron Nicholson" <[EMAIL PROTECTED]> wrote in message
news:102102@palm-dev-forum...
>
> >You are right, thank you.
> >So, there is no appropriate mechanism to draw colored lines :((
> >
> >--
> >Andrey A. Belkin
> >[EMAIL PROTECTED]
>
> If you don't want to use the documented OS 3.5 API'
:-)
But then all 3.0 devices will show error message that trap not found? :(((
--
Andrey A. Belkin
[EMAIL PROTECTED]
> Of course there is Andrey, but only on devices that support colour... :-)
>
> You can draw coloured lines by doing what I'm assuming you are doing - set
> the for colour, paint
More clearly stated:
At form close the extended gadget receives a callback
message with a cmd value of formGadgetDeleteCmd. To
delete the gadget data a call to FrmGetGadgetData() is
required to retrieve the memory pointer that is to be
freed using MemPtrFree(). To accomplish this, a
pointer to th
From: "Ben Combee" <[EMAIL PROTECTED]>
>
> In short, the "static" keywords are used to keep CodeWarrior from
> complaining about the lack of prototypes for these functions.
Well, I guess that's one way of looking at it--to shut the compiler up! :)
The other way of looking at it is that functions
From: "Paul" <[EMAIL PROTECTED]>
> I'm writing an application for the PalmOS and I notice all the sample code
> seems to use a "static" qualifier on all the function declarations. What
is
> the reason for this? Do I need to do this for all functions, or is it for
> callback functions and the like
Are there any code samples available that show how to include a VFS
directory in CategorySelect()?
Thanks.
Art
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
You asked for it ;P
Method 1: Copying a known-length string (missing null terminator) into a
string, with terminator.
Char *p, *q, *srcstr, *deststr;
UInt16 i, strlength;
deststr = (Char *)MemPtrNew(sizeof(Char)*(strlength+1));
for ( i = 0, p = srcstr,
Hi Matthew,
Yes, I now got working code but it always helps to see
other ways of doing it, so I would appreciate if you
could post the rest of the code (MemPtrResize,
stringbuffer).
I'll also give the code you posted a try.
Thanks
Michel.P
--- Matthew Bevan <[EMAIL PROTECTED]> wrote:
>If you wa
Damn, this list is active. *shudder* Seems to really calm down on the
weekends, though. You've probably already got working code, but here's my
way of looking at it.
Anyway... when I need to do things like this (and you know the length of the
string, that's kinda why the nulls are there btw)
Hi Henk,
I thought one couldn't copy a null string using
StrCopy(): I tried that before posting my question
(but usting '\0' instead of "\0") and it gave me an
error, and I believe someone in another post said that
you can't StrCopy() null?
--- Henk Jonas <[EMAIL PROTECTED]> wrote:
> Michel,
"Paul" <[EMAIL PROTECTED]> wrote in message news:102423@palm-dev-forum...
>
> I'm writing an application for the PalmOS and I notice all the sample code
> seems to use a "static" qualifier on all the function declarations. What
is
> the reason for this?
See http://www.palmoswerks.com/stories/story
"DeVon Fowler" <[EMAIL PROTECTED]> wrote in message
news:102407@palm-dev-forum...
>
> Unable to free allocated memory at form close time
> without getting an error message.
>
> [...]
>
> --DETAILS--
> Fatal Alert:
> form.c, Line:5570, NULL form
>
> Produced from:
> Err destroyMyGadg
At 23:30 2002-11-23 -0800, you wrote:
I'm writing an application for the PalmOS and I notice all the sample code
seems to use a "static" qualifier on all the function declarations. What is
the reason for this? Do I need to do this for all functions, or is it for
callback functions and the like?
e
29 matches
Mail list logo