At 22:22 2003-1-22 +0800, you wrote:
How to init variables in sampleLib ?  Is it related to wrong CW settings?

Please look at the code below. Why intxxx, intyyy, gdate, spxxx, spyyy,
and ddd cannot be initialized?  The constants assigned to the Global
Varaibles are not included to the prc file. The constants assigned to
the local variables are appended to the end of file? But not init?
Shared libraries on Palm OS do not have global variables, at least not by default. The code is generated to access globals via A4, but you would have to manually copy this clump of variables to memory you allocate yourself. Ken Krugler shows how to do this at

http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_adp.php?p_faqid=280

although the article could probably be updated some.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.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