How to create an application-wide variable?

Riccardo Cohen rcohen at articque.com
Sun Feb 3 02:43:11 PST 2008


I usually create a global variable near the main, and access it with 
extern keyword. But if this object needs to be accessed from several 
threads, it must generally be protected with mutex

Herry Ayen Yang wrote:
> Hello everyone,
> 
> How to make an application-wide variable in wxWidgets programming?
> Thanks in advance.
> 
> Ayen
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> 
> 

-- 
Très cordialement,

Riccardo Cohen
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49





More information about the wx-users mailing list