doc Posted June 28, 2007 Share Posted June 28, 2007 this probably a really stupid question: UT_String parmVal=""; string strVal="foo"; parmVal=(char *)strVal; gives me the error error: cannot convert `strVal' from type `std::string' to type `char*' any idea what I'm doing wrong? thanks Quote Link to comment Share on other sites More sharing options...
doc Posted June 28, 2007 Author Share Posted June 28, 2007 (edited) figured it out: parmVal=strVal.c_str() Edited June 28, 2007 by doc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.