I'm having a problem with taking the user input from a richtextbox in Unicode and writing it to a Unicode text file.
I'm able to read a different Unicode file and write it to the new file, but when it comes to writing the contents of the richtextbox to the new file, nothing appears.
I've tried debugging it, and I can see that the wstring is assigned correctly, I just can't see why this won't write to file.
You are using .Net. Why use regular C++? It is far easier to just use System::IO::FileStream and a StreamWriter object to write the text. No marshaling required if you stay in the confines of .net.