p.dragicevich has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone have experience with Win32::OLE and MSMQ?

I have a script that I want to port from using a database to using MSMQ. The problem is that the MSMQ queue messages are themselves COM objects. I can create the MSMQQueueInfo and MSMQQueue objects fine, and Peek or Receive messages from the queue. The problem is that the MSMQMessage objects that are returned do not return the COM object as the message Body property, but rather a Win32::OLE::Variant of type VT_ERROR. Am I asking too much of the Win32::OLE module?

I have alternatives (rewrite as a WSH JScript, which is ok except I want the script to translate the messages and send as e-mail messages, which would mean CDONTS and running IIS SMTP server on an already overloaded machine, or rewrite as C++ or Delphi, which means a lot more work).

Replies are listed 'Best First'.