I have implemented this and I'm in the process of testing. The problem I am
having is when trying to cursor through messages in the queue using
MQReceiveMessage. The first call to this routine using
MQ_ACTION_PEEK_CURRENT works fine and returns the first message in the
queue. On each subsequent call to MQReceiveMessage using
MQ_ACTION_PEEK_NEXT or MQ_ACTION_RECEIVE, returns an error of
MQ_ERROR_INVALID_PARAMETER.
After checking everything in my code for errors and trying numerous
different approaches, I decided that I would change my code to link
implicitly to the mqrt.dll rather than explicitly. Once I made this change,
the MQReceiveMessage calls started to work correctly.
Does anyone know if there is a reason why mqrt.dll can't be loaded
explicitly to call MSMQ functions? Thanks.
Ashley Barton
Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
.
"Ashley Barton" <abar...@yahoo.com> wrote in message
news:eNSXt0ZI...@TK2MSFTNGP11.phx.gbl...
"Doron Juster [MSFT]" <Dor...@online.microsoft.com> wrote in message
news:Oek6CBb...@tk2msftngp13.phx.gbl...