高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|