Category: C++

Reversing a string in C++

Remember that reversing a string in C++ is this easy:

C++ Glossary

There are a number of C++ acronyms that I seem to forget over and over, so i decided to start maintaining a glossary here. I hope others find this useful, as well. Acronym Definition Comments CTAD Class Template Argument Deduction In order to instantiate a class template, every template argument must be known, but not every …

Continue reading

Solved: The (Visual Studio) project file * has been moved, renamed or is not on your computer.

I renamed my Visual Studio 2010 (VS2010) Solution (.sln) and Project (.vcxproj) files today.  When I opened the Solution, it could not find the Project file, thinking it was still in the old location.  To solve this, I had to exit VS2010, delete the project’s .suo file, restart VS2010, open the Solution, and then re-add …

Continue reading

Display Unicode Characters on the Windows Console

Even in today’s mostly-Unicode world on Windows, the console (i.e. cmd.exe) still defaults to using OEM code pages (i.e. multibyte characters).  To set the console to Unicode mode, use the following code:

This information came from two great articles by Michael Kaplan: Conventional wisdom is retarded, aka What the @#%&* is _O_U16TEXT? Anyone who …

Continue reading

How to install VC++ update KB2455033

Head to the Visual C++ Team’s blog entry entitled “MS11-025 Visual C++ Update Issue“, scroll down to the section entitled “Visual Studio 2010 RTM with Windows SDK”, and follow the instructions there.  For completeness sake, here they are: If you have Visual Studio 2010 RTM and Windows SDK 7.1 installed on an x64 machine, then …

Continue reading

Load more