Damn .. I'm banging my head against the wall right now - cuz´ I just cant figure out how to convert the Gui´s editboxes wchar_t values - into something usefull. Damn you wchar_t´s
Could someone please post a code snippet for converting the editbox content to a char* and an int. The code need to work with mingw (win32) and gcc (Linux).
wchar_t* SomePointer;
stringc Temp(SomePointer);
char *AnotherPointer=Temp.c_str();
//Or the other way around
char* SomePointer;
stringw Temp(SomePointer);
wchar_t *AnotherPointer=Temp.c_str();
I'm surprised that a lot of people have missed the simple and handy function atoi. Guess what it does? It takes an ascii-string and returns an integer