Thread
:
Using auto_ptr or shared_ptr to allocate memory to a Structure
View Single Post
xpi0t0s
Mentor
26Nov2008,15:38
If it's already a char* (or char[]) why do you need to cast it to char*?
> strcpy...
> (char *)... <-- this bit
> ...output->record_type,(char *)input->recordType.c_str());
Remove the casts and let me know what errors you get.