On Thu, Aug 21, 2014 at 02:59:03PM -0600, Dominic Sisneros wrote:
> 
> Is there anyway to get this error code setup?  That is what .Net does with
> the Type.Missing field for optional args that are empty
> 

Sorry for being too late to reply.

Unfortunately, there is no way to set error code.
But I have committed new version of win32ole into ruby-trunk.
The latest version of WIN32OLE (which comes up with 
ruby 2.2.0-dev trunk 47431 or later) will support setting error code.
ie,
  WIN32OLE_VARIANT.new(-2147352572, WIN32OLE::VARIANT::VT_ERROR)
does not occur error.

And I added WIN32OLE_VARIANT::NoParam constant like as Type.Missing.

  Regards,
  Masaki Suketa