![]() |
【转帖】c-str90 no longer returning a c string in dd2.0.2
c_str() no longer returning a c string in dd2.0.2
c_str() no longer returning a c string in dd2.0.2 it looks like dd2.0.2 has moved to unicode. odstring:: c_str() no longer return a c string in dd2.0.2 c strings stricto-sensu are 8 bits char types terminated by \0. c_str() now returns a pointer to unicode chars. how to get a ansi 8 bits char* from a odstring ? (ex svcs.product(),versionstring()... return an odstring and something like this no longer works: char sztemp[100]; sprintf(sztemp, " %s %s v%s (%s by %s)\n", svcs.product().c_str(),svcs.versionstring().c_str( ), svcs.program().c_str(), svcs.companyname().c_str()fff">fff">); thanks james forget forget the previous post. i have found the cast (const char*)odstring j. |
所有的时间均为北京时间。 现在的时间是 04:30 PM. |