I needed to load a huge amount of data into memory. It had to be a continuous chunk of memory and I could not tell the size from a beginning. C++ std::vector
is a good candidate however its downside is that it reallocates and copies all data when it runs out of its current capacity. Virtual memory mapping to the rescue! (more…)
Reserve virtual memory
MS VC++ 2012 and Windows XP
MS VC++ 2012 is installed, development environment is fine tuned with all necessary libraries, QT and boost are no longer complaining about missing components etc… Then you find out that your application is not working in Windows XP. You see only a terse dialog with a message program.exe is not a valid Win32 application. (more…)
Windows 8 SDK
MS Visual C++ 2012 SDK might be already mature enough and lots of libraries are being built with this version these days. Its support for C++11 is also supposedly better so lets try it. This is not a review. Only a simple “how to” about installing and troubleshooting. (more…)
Windows 7 SDK troubleshooting
Let’s say you need to compile your C++ project under MS Windows and you need to use the Microsoft’s toolchain instead of MinGW. Buying the whole Visual Studio is not necessary. I like a simple combination gvim+scons+gcc which gives me a high amount of flexibility. I just needed to switch the gcc to the MS compiler.