C++ const char to char.. how to CONVERT?..
By geniusvinz
@geniusvinz (419)
Philippines
1 response
@ram_cv (16513)
• India
15 Oct 11
Your query has taken me back to the olden days of my programming. The easiest way to convert from const charm to char is to use the reinterpret_cast operator. But you need to be careful when you use reinterpret_cast as you could easily violate the safety of the pointer. For more details check out the following links:
http://msdn.microsoft.com/en-us/library/e0w9f63b%28v=vs.80%29.aspx
http://stackoverflow.com/questions/833034/how-to-convert-const-char-to-char
Cheers!
Ram
![](/Content/images/loading.gif)