irr::core::array<irr::core::stringc> ctyLst = SQLdb.Query("Select DISTINCT Team from Test");
for(int i =0; i < ctyLst.size(); i++ )
{
m_pCountryCbo->addItem(ctyLst[i]);
}
How to convert 'irr::core::stringc' to 'const wchar_t *'?
Basically there's two types of strings - standard and wide. Normal strings are the ones you are probably used to working with (i.e. "Hello World!"). Wide strings use two bytes per character instead of just one and use the type wchar_t instead of char. They can support many other characters, such as unicode characters, etc. You can create a wide string by simply putting an L in front of the string (i.e. L"Hello World!"). Like bart suggested, Irrlicht has a string class for each (stringc for standard strings and stringw for wide ones) and can use them to convert between the two.
slavik262 wrote:Like bart suggested, Irrlicht has a string class for each (stringc for standard strings and stringw for wide ones) and can use them to convert between the two.
I'm fairly certain that the Irrlicht string template is only good for translating strings that are representable in ASCII (i.e., the char value has to be between CHAR_MIN and CHAR_MAX).