O
Otto Wyss
I have a string variable g_appname which should be global accessable by
any class who whishes. I have defined it as
wxString *g_appname = NULL;
and fills it later on. Now a friend asked why I didn't write
wxString g_appname = "Name";
I had to answer "I don't know", I just had the impression in global it
should be a reference. Again when he asked why I didn't use a static
variable in a class, I didn't know an answer beside not knowing which
class it belongs to. So what's correct in which case?
O. Wyss
any class who whishes. I have defined it as
wxString *g_appname = NULL;
and fills it later on. Now a friend asked why I didn't write
wxString g_appname = "Name";
I had to answer "I don't know", I just had the impression in global it
should be a reference. Again when he asked why I didn't use a static
variable in a class, I didn't know an answer beside not knowing which
class it belongs to. So what's correct in which case?
O. Wyss