I'm trying to print an LPCWSTR value to a file, but it only prints the address, not the value.
I've tried dereferencing the variable (using *) to get the value , but this doesn't work either.
How can I print the value ?
void dump(LPCWSTR text){
ofstream myfile("C:\\myfile.txt", ios::app );
myfile << text << endl;
myfile.close();
}
Thanks in advance.