Problem :
I want to put the string (sCaption )to replace the char*(cTempo)PHP Code:void Menu::DrawMenu(string sCaption)
{
char * cTempo = sCaption.c_str();
// int, int, char*, WORD
VideoXY(x,0, cTempo ,YELLOW | BLIGHTBLUE);
}//End DrawMenu
BUT I got that message :
Code:error C2440: 'initializing' : cannot convert from 'const char *' to 'char *' Conversion loses qualifiers
How can I transform the string to char* ???
![]()




Reply With Quote