First steps in C++
A friend has politey written a wee small Qt application for me to get me started. I improved it so it now requests and loads a binary file from the hard drive when pressing a button. Pressing an other button writes the hex code of the data to stderr.
I already know that I will be interested in multithreading as soon as possible. When writing the data to stderr one can already see the GUI to freeze for a short time - and the data has only been 34KB :) .
I wonder that it was that difficult to load binary data. I guessed that for a computer it should be very simple to handle it. But no, various data types are represented by a different amount of bytes on different platforms/architectures. Furthermore, you need to know that if you load binary data into a string object the machine will convert bytes that look like row endings. Urgh.

0 Comments:
Post a Comment
<< Home