User forums > General (but related to Code::Blocks)

const wxString

(1/3) > >>

sethjackson:

--- Code: (cpp) ---const wxString DESCR = _("Welcome to ") + APP_NAME + _T(" v") + APP_VERSION + _T("!\n") + APP_NAME +
   _(" is a full-featured IDE (Integrated Development Environment) "
     "aiming to make the individual developer (and the development team) "
     "work in a nice programming environment offering everything he/they "
     "would ever need from a program of that kind.\n"
     "Its pluggable architecture allows you, the developer, to add "
     "any kind of functionality to the core program, through the use of "
     "plugins...\n");

--- End code ---

I know for a fact that it crashes on APP_NAME..... C::B fails to load with the above code why????

rickg22:
I think APP_NAME stopped being a macro and began being a variable.

takeshimiya:
Yes, someone who changed APP_NAME and their friends to be a variable, forgot to update all the code.

Just do a Find in Files search and you'll notice. :)

280Z28:
Move it to appglobals.cpp

sethjackson:
That code above is in dlgabout.cpp no way it can go to appglobals.cpp. I want to know why the above code crashes and other code that uses APP_NAME doesn't.....

Navigation

[0] Message Index

[#] Next page

Go to full version