IsManaged

I’m about to catch my flight for the PDC, but I wanted to archive the following before I go: In one of our session‘s demos on Tuesday, I’ll be briefly mentioning C# code that determines whether a given file is a managed or unmanaged binary by inspecting its PE header.  Here is the C++ code it’s based…

4

PDC Book Signing and Book Giveaway!

If you’re going to the PDC, and if you needed more incentive to attend Sonja’s and my session – Managed/Native Interop Best Practices and Common Pitfalls (That We Learned the Hard Way) – then look no further! During our session, we’ll be giving away up to 10 signed copies of .NET and COM: The Complete Interoperability…

8

GUID Generation and VB6 Binary Compatibility

When exposing managed types as COM types, your classes must have CLSIDs, your interfaces must have IIDs, and so on.  System.Runtime.InteropServices provides a custom attribute (GuidAttribute) that enables you to be explicit about these GUIDs.  But the CLR also has a reasonable algorithm for generating GUIDs on-the-fly, so you normally don’t need to be explicit…

54