> > StrCopy(str, "Hello");
> > APICall(str);
> >
> > this will put the pointer value of "str" on the stack, that is pushing
> > one 4byte integer (the pointer)
> >
> > APICall("Hello");
> >
> > will put the data "Hello\0" on the stack. thus, pushing the string by
> > value.. :)) just type casting it wont do the job :))
>
> Tell me again, what compiler are you using? Every one I've ever used
> puts "Hello\0" into an un-named spot in some section (probably the one
> called vars or strings), and pushes the address of that location onto
> the stack. It *has* to work like that. APICall could be in a different
> module, or even in a library that some other guy wrote. How in the
> world would it be able to determine which of the two ways it's being
> called (with a pointer to the data vs. having the data right on the
> stack)?
� heck, we all have a bad day every now and then.. i will put a reminder
in my Palm :)) must get some sleep before i say somethign stupid like
this again. :P
how did i get myself into this conversation again :))
� char *
const char *
difference? "const" = read only
// az
[EMAIL PROTECTED]
http://www.ardiri.com/ <--- free games!
+46 70 656 1143
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/