Ah, I have the impression that your original message was misunderstood and 
you're being given bad advice. Don't play with #defines. Instead, do the 
following:

1) In one of the files, declare the global variable as you normally would, e.g.,

UInt32 MyVar;

outside of any function declaration.

2) In the other file, declare it the same way, but put the word "extern" in 
front of it:

extern UInt32 MyVar;

That is, provided that I have understood that you want to do.

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

Reply via email to