I am trying to print the LPCWSTR value for a file, but it prints only the address, not the value.
I tried dereferencing a variable (using *) to get the value, but this also does not work.
How to print the value?
void dump(LPCWSTR text){
ofstream myfile("C:\\myfile.txt", ios::app );
myfile << text << endl;
myfile.close();
}
Thanks in advance.
Todd
source
share