I use the function ExitWindowsEx to reboot my computer. Everything works just fine except for the fact that if I try to force a reboot (EWX_FORCE | EWX_REBOOT )my system does shutdown but not reboot... it simply hangs up at a certain point after the shutdown is already done. What can I do ? (This only happens with Win95; with WinNT it works !!)
You can use the Win32 API ExitWindowsEx() on Windows NT to force a logoff. You accomplish this by combining the EWX_LOGOFF and EWX_FORCE flags. Unfortunately, this combination is not supported on Windows
Load and Save to file, Document-View interaction inside the SDI.
Continuing from the second article about sudoku.
Open the project in visual studio.
From the class view select CSudokuDoc and double click to open the header …
Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers. The PreTranslateMessage function is to be used to intercept and respond to keyboard events.
Continuing from the fourth article about sudoku. …