Okay, I see where you are coming from, I was under the impression that
declaring
the variable as satic(outside of any modules and at the top of the file)
would reserve a space in memory for the entire run-time of the code, and
that
any extern declarations would automatically reference the static instance.
How can I make the object truly global?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of William
F. Weiher III
Sent: Monday, June 26, 2000 11:10 AM
To: Palm Developer Forum
Subject: RE: FrmDoDialog() and Global variables
The static myClass in manager.cpp creates an instance which is available
only in the module. The extern myClass in dialog.cpp would therefore note be
referencing the same instance which would explain why your variables do not
have the values you expect.
-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/