hello everybody
i'm trying to make a simple raknet program with irrlicht.
for now it is only a simple gui with textboxes to enter the server ip and port and a connect button.
raknet uses the following command for connecting:
client->Connect(char* host, unsigned short serverPort, unsigned short clientPort, unsigned long connectionValidationInteger, bool highPriorityThreads);
is there a way to convert a wchar_t type of the textboxes (the result of textbox->getText) to char (for the ip) and int or so (for the port)?
thank you!
Type conversion
Code: Select all
core::stringw textboxText = textbox->getText ( );
core::stringc cText = textboxText;
int ip = atoi ( cText.c_str ( ) );