Greg, thanks for that tip. I'm not the original poster here, but I have similar 
problems (not with AppCopyTextToField() ). Are there guidelines for creating an 
app with multiple code sections?

So far, I've been able to piece this much together:

* Edit the sections.h and sections.def files to name the sections.

* Put function prototypes in the first of the source file that actually 
contains the function's code, showing which section it's in.

That's all I've done. Should I do more? Am I supposed to put section-specific 
prototypes of a function in another source file that calls that function? Right 
now, I have just put in a standard prototype for that function in a .h file, 
not showing any section info. For example, let's say I have two source files:

--------------------- main.c -------------------
#include morecode.h
myvar = getvar();
-------------------------------------------------

--------------------- morecode.h ----------------
Int16 getvar();
-------------------------------------------------

--------------------- morecode.c ----------------
Int16 getvar() EXTRA;
...
Int16 getvar()
{
code goes here
}
--------------------------------------------------

Of course, the files have references to sections.h etc. Should I declare 
getvar() with the EXTRA section info in the morecode.h file? I haven't done 
that yet, because it seemed to work without it.

thanks,

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

Reply via email to