Basics
Hello world
User input
While loop
If statement
For loop
Switch statement
Read file using ifstream
Write to a file using ofstream
Containers
Basic usage of std::list
Basic usage of std::map
Basic usage of std::vector
Data type conversion
Windows API with Exmaples
DeviceIoControl
FindFirstVolumeW
GetDiskFreeSpaceExW
GetLogicalDrives
GetLogicalDriveStrings
C++/WinRT
C++/WinRT Hello World
Qt Cross-platform
Installing Qt Creator 9.0.1 on Windows 10
Qt console hello world
Qt Widget hello world
Qt Widget hello world code only
Keywords: C++, Qt, Programming, Tutorial
Saturday, January 21, 2023
Getting the last error code while debugging even if the Win32 API returned value was not saved
Getting the last error code while debugging even if the Win32 API returned value was not saved
It is not uncommon that a Win32 API call return value is not checked in code. This information can prove to be very invaluable while debuging. Fortunately, Visual Studio saves pseudovariables which includes the value normally returned by GetLastError function. To view what would have returned by GetLastError use $err,hr in the Watch window. Refs:Visual Studio Pseudovariables
Tags: Visual Studio, CPP
Wednesday, January 04, 2023
Getting 'You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode' after rebooting Linux Mint 21.1 Vera
On my Linux Mint 21.1 Vera machine, rebooting the machine would show the following early in the boot process
For my specific case this happended because I have a USB drive connected to the CPU. Removing the the USB drive and rebooting the machine allow me to continue with the boot process.You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode.
Press Enter for maintenance
(or press Control-D to continue):
Subscribe to:
Posts (Atom)