As I clould not pass LPCSTR from one function to another (Data get changed) I tried passing it as a string.
But later I need to again convert it back to LPSTR. While
There is a function on std::string c_str() . However I doubt that you could not use a std::string in your case.