title: .NET Compact COM interoperability
body: <p>I have the following code in a full .NET framework solution:</p>
  
  <pre>
  <code>
  public delegate int CreateObjectDelegate(
              [In] ref Guid classID,
              [In] ref Guid interfaceID,
              [MarshalAs(UnmanagedType.Interface)] out object outObject);
  
  ...
  
  var createObject = (NativeMethods.CreateObjectDelegate)
      Marshal.GetDelegateForFunctionPointer(
          NativeMethods.GetProcAddress(_modulePtr, "CreateObject"),
              typeof (NativeMethods.CreateObjectDelegate));
  object result;
  Guid interfaceId = _guid;
  Guid classID = _classId;
  createObject(ref classID, ref interfaceId, out result);
  </code>
  </pre>
  
  <p>The purpose is to create the needed COM object at runtime. Is it possible with any .NET compact framework?</p>
  
  <p>Note that it doesn't have Marshal.GetDelegateForFunctionPointer.</p>