OOM.NET – The problem with modifying the iterating object in a “foreach”

Ahhh “foreach”. Usage of foreach can be either a blessing or a curse. Unfortunately, a lot of developers don’t understand that it can cause issues. The need to avoid it when code in a foreach will do an operation (move, delete, etc.) is something which blows the minds of even seasoned developers. What you will…

0

Building messaging applications with “Any CPU”

When building pure .NET applications doing builds using Any CPU usually go pretty smoothly. Even when mixing in some COM objects things usually go well. However, developers often run into issues with .NET code using COM objects then deploying their applications to other computers where the bitness of their development box OS does not match…

0

Sample – Detecting installed Outlook and its bitness

Here is a sample which detects the installed Outlook versions and their bitness.   using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Runtime.InteropServices; using Microsoft.Win32;   namespace DetectOutlook { class Program { public enum BinaryType : uint { SCS_32BIT_BINARY = 0, // A 32-bit Windows-based application SCS_64BIT_BINARY = 6, //…

0