How to create an application-wide variable?
Herry Ayen Yang
ayen.krida at gmail.com
Sun Feb 3 05:37:24 PST 2008
Thanks Riccardo,
I'm still curious if we can use the application class as the base for
all global variables.
Could you give me an example on how to use wxGetApp() function? I
don't know how to make the function works.
Thanks in advance.
Ayen
On Feb 3, 2008 5:43 PM, Riccardo Cohen <rcohen at articque.com> wrote:
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
More information about the wx-users
mailing list