Friday, July 27, 2018

Restoring Missing Icons in Visual Studio 2017


If you find that the icons in Visual Studio 2017 are missing, a potential fix is to delete a specific folder that contains icon cache, and then restart Visual Studio 2017. Here's how to do it:

1. Close Visual Studio 2017 if it's currently running.
2. Navigate to the following folder path in File Explorer:
   %LocalAppData%\Microsoft\VisualStudio\15.0_[UniqueID]\ImageLibrary\

   Replace [UniqueID] with your unique user ID.

3. Delete the `ImageLibrary` folder.
4. Restart Visual Studio 2017.

Upon restarting, Visual Studio 2017 should regenerate the missing icons, restoring them in the interface.

Wednesday, April 11, 2018

Converting float to int using bits

Sometimes it makes sense to place an integer into an array of floats but not want to represent it a float.

GLSL has a function for converting the bits that represent a float to an integer and vise versa:

https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/floatBitsToInt.xhtml

Monday, April 9, 2018

Fixing MFC compile errors in Visual Studio 2013

If you get the error:

Error 1 error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must change the project property to Unicode or download an additional library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets 376

It can be fixed by installing the Multibyte MFC Library for Visual Studio 2013 which can be found here.

Thursday, April 5, 2018