Hi!
This function:
Does not work in Win98. GetLastError () function returns number 120. What is that error and why it's not working?Code:void CodePage (UINT InputCP, UINT OutputCP) { BOOL Input = FALSE, Output = FALSE; // set codepage if ((Input = SetConsoleCP (InputCP)) == 0) { printf ("Input code page cannot be set to %u. Error code: %d", InputCP, GetLastError ()); } if ((Output = SetConsoleOutputCP (OutputCP)) == 0) { printf ("Output code page cannot be set to %u. Error code: %d", OutputCP, GetLastError ()); } }
Thanks!



LinkBack URL
About LinkBacks


