Guys can someone tell me why did the output of my writefile is like this ÍÍÍÍ, looks like those in Character Maps. Can someone advice ?Code:HANDLE File; DWORD bytesWritten; HWND hEdit; int Length; File = CreateFile("c:/testing.txt",GENERIC_WRITE,FILE_SHARE_READ, NULL, CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL); hEdit = GetDlgItem(hwnd,ID_MAINEDIT); Length = GetWindowTextLength(hEdit); char *Buffer = new char[Length+1]; WriteFile(File,Buffer,Length,&bytesWritten,NULL); CloseHandle(File); delete [] Buffer;



LinkBack URL
About LinkBacks


