Rant about EnvDTE.CodeTypeRef.Rank

August 4, 2008

When you have a variable (EnvDTE.CodeVariable) or function (EnvDTE.CodeFunction), their Type property returns an EnvDTE.CodeTypeRef with information about the type. If the type is an array then CodeTypeRef.Rank returns the dimensions (1, 2…). The problem is that if it is not an array, it throwns an exception, which can hurt the performance if you do […]

MZ-Tools Articles Series: HOWTO: Get Microsoft Office bitmaps for Visual Studio add-ins

August 1, 2008

I have been struggling during the last weeks to get 32×32 icons from Office 2007 and yesterday I found the 2007 Office System Add-In: Icons Gallery. Also, a question that appears from time to time in the forums is how to get the numerical indexes of the Office bitmaps to use when calling the AddNamedCommand […]