OFString convert

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
cjacquel
Posts: 19
Joined: Mon, 2007-01-15, 17:14

OFString convert

#1 Post by cjacquel »

Hello,

How to convert from OFString to CString and CString to OFString ?

Thank you,
Christophe

J. Riesmeier
DCMTK Developer
Posts: 2505
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: OFString convert

#2 Post by J. Riesmeier »

Since OFString implements a subset of std::string (or is even identical to that, if compiled with HAVE_STD_STRING), I guess that using OFString::c_str() would be the answer.
I personally never used CString, which is Microsoft's proprietary way of storing character strings (as far as I know).

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest