User forums > General (but related to Code::Blocks)
const wxString
takeshimiya:
APP_NAME.c_str() ...................
sethjackson:
--- Quote from: Takeshi Miya on January 24, 2006, 03:30:03 am ---APP_NAME.c_str() ...................
--- End quote ---
Hmmm...
--- Code: (cpp) ---const wxString DESCR = _("Welcome to ") + APP_NAME.c_str() + _T(" v") + APP_VERSION.c_str() +
_T("!\n") + APP_NAME.c_str() +
_(" 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 ---
src\dlgabout.cpp:32: error: invalid operands of types `const wxChar*' and `const wxChar*' to binary `operator+'
takeshimiya:
Heh, that's true, trying to add pointers to char... :P
wxString(APP_NAME) would do the trick then :D
sethjackson:
--- Quote from: Takeshi Miya on January 24, 2006, 03:46:34 am ---Heh, that's true, trying to add pointers to char... :P
wxString(APP_NAME) would do the trick then :D
--- End quote ---
Alreadey did that. It crashes too. :P
This doesn't crash
wxString(APP_NAME.c_str()) but I get no text.... :lol:
What is going on??? :?
280Z28:
Move it to appglobals.cpp
It's trying to initialize that variable before APP_NAME is set to anything.
I know, I made this change a few days ago...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version