|
-
May 8th, 2012, 03:07 PM
#4
Re: typcasting a struct
 Originally Posted by ZuK
You can't assign to an array.
Use strcpy() instead.
Code:
strcpy( (char *)x->content, message.c_str());
Kurt
Well, before copy you have to allocate a buffer to copy to.
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|