This object is used to open a "Save as" dialog. In this example, the dialog is used to save an error log to the desired location. The name "errorLog" is already given in the dialog but can be altered, if required. The extension is also given but can't be altered. In the bottom part of the example the file gets written with ofstream.
Includes: iostream, fstream
This code can also be used to open a file. The code in this case needs to be changed where the dialog gets called (GetSaveFileName). The method for opening a file is GetOpenFileName.
This cothis is a demo with whitespaces in itde strips a std::string of whitespaces in front and after the string.
This code will remove all whitespaces in between the words.
This function converts a string with an integer or hex value to a real integer.
This function takes a .bin file and converts it into a std::vector of unsigned char.