Hi,
I have a problem. so i have this old c function that takes as an argument a char*. but my app is written in cpp so i used std::string to store my strings. to pass a char * to the function i tried :
and thenCode:char *input = new char[args.i.length() + 1]; strcpy(input, args.i.c_str());
but i still get this warning message which i would like to fix:Code:function (input); and function ( (char *)input);
warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
any suggestions ?
baxy