If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

RWCString rws = "Copy me";
// 1000 should be big enough, but of course you can also dynamically allocate and delete later
char buffer[1000] = {0};
strcpy(buffer,rws.data());

But you might not need to copy to a buffer at all. It depends on what you want to do with it.
if you only need a const char* (for example as the input of an API call) then you shouldn't even
bother copying, but just use the data() method of RWCString.

Last edited by drkybelk; 04-16-2010 at 05:19 PM.

DKyb

-------------------------------
Life is a short warm moment -
Death is the long cold rest.Pink Floyd
-------------------------------