I have a managed type of String str. I want to convert it into a C++ style char* and copy it into str1. I am using VC++.Net.
I use the following code. The str1 gets converted to const char* str2 but I get a null exception
when I try to copy the const char* str2 to char* str1. What do I need to do to get this code running? Please help.. Thank you.