I've tried:

TransStruct* aStructure;
aStructure->Ground[0]='u';

This compiles but creates the error message regarding accessing global
variables when I actually call the function under the emulator.

What does aStructure point to? You need to assign it the address of a global variable or memory you've allocated from the heap. By default, the aStructure pointer doesn't actually point to real memory.


-- Ben Combee, Senior Software Engineer, Palm, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


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

Reply via email to