At 11:44 AM 11/4/2005, you wrote:
I am trying to set the first character in a char array within a structure
equal to a character using:
aRecord->Ground[0] = 'u';
When I run this, the compiler tells me that I'm accessing memory
incorrectly, and should use special means of accessing memory.
This should work, unless aRecord is on the storage heap. In that case, you
need to write something like
DmWrite(aRecord, offsetof(aRecord, Ground[0]), "u", 1);
(that's approximate syntax)
-- 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/