|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
2043 in ActiveX |
« View previous topic :: View next topic » |
Author |
Message
|
fordcam |
Posted: Fri Mar 29, 2002 12:22 pm Post subject: |
|
|
 Apprentice
Joined: 28 Mar 2002 Posts: 35 Location: MGIC
|
We're attempting to use the Write method in the MQMessage class, and always fail with a 2043 reason code (MQRC_OBJECT_TYPE_ERROR). This documentation for this error says that the ObjectType in the MQOD isn't valid. This makes no sense because the MQOD is used earlier, in the AccessQueue class.
So, here's what we're doing. We have defined:
Dim MyArray(100) As Byte
Dim MyStr As String
This code works-> Msg.WriteString(MyStr)
This code gets a 2043-> Msg.Write(MyArray)
By the way, by 'works,' I mean that the message is built and when we later put it on the queue it looks the way it's supposed to. Any ideas? I assume MQAX is using 2043 for its own purposes, since these Write methods aren't actually doing any MQ API calls. |
|
Back to top |
|
 |
fordcam |
Posted: Wed Apr 03, 2002 4:30 pm Post subject: |
|
|
 Apprentice
Joined: 28 Mar 2002 Posts: 35 Location: MGIC
|
Anybody???
The ActiveX doc for the Write method says:
Syntax:
Call MQMessage.Write(data)
Parameters:
data: a byte array or a variant reference to a byte array
================================
So why does
Dim MyArray (100) as Byte
Msg.Write(MyArray)
get a 2043??
[ This Message was edited by: fordcam on 2002-04-03 16:31 ] |
|
Back to top |
|
 |
dpchiesa |
Posted: Mon Jun 03, 2002 3:26 pm Post subject: string != Array |
|
|
 Apprentice
Joined: 29 May 2002 Posts: 46
|
In VB, a String is not the same as a byte array.
!!
2043 is telling you that.
-D _________________ -dpchiesa |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|