S
Steven C
I have a 3rd party libary that takes a char * (not a const char *).
if I have:
string strSome;
char *the3rdpartylib;
how do I:
the3rdpartylib = strSome.c_str();
I have done:
the3rdpartylib = (char *) strSome.c_str();
which gets by the compiler messages but the lint program is complaining about
never assign a const to a non const.
I tried this:
the3rdpartylib = static_cast <char *> (strSome.c_str());
which gives compiler error message:
can't convert from const char * to char *
thanks
if I have:
string strSome;
char *the3rdpartylib;
how do I:
the3rdpartylib = strSome.c_str();
I have done:
the3rdpartylib = (char *) strSome.c_str();
which gets by the compiler messages but the lint program is complaining about
never assign a const to a non const.
I tried this:
the3rdpartylib = static_cast <char *> (strSome.c_str());
which gives compiler error message:
can't convert from const char * to char *
thanks