Why do we need extern const?
IE:
#ifndef APPGLOBALS_H
#define APPGLOBALS_H
#include <wx/string.h>
extern const wxString APP_VENDOR;
extern const wxString APP_NAME;
extern const wxString APP_VERSION;
extern const wxString APP_ACTUAL_VERSION_VERB;
extern const wxString APP_ACTUAL_VERSION;
extern const wxString APP_URL;
extern const wxString APP_CONTACT_EMAIL;
extern const wxString APP_PLATFORM;
extern const wxString APP_WXANSI_UNICODE;
extern const wxString APP_BUILD_TIMESTAMP;
#endif // APPGLOBALS_H
Then in appglobals.cpp set the wxString's to something? Why is this needed? Why can't you set the strings to something in the header? Sorry if this is the most stupid question ever, but I'm not understanding. :(
I read this on MSDN...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccelng/htm/basic_17.asp