ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » 2043 in ActiveX

Post new topic  Reply to topic
 2043 in ActiveX « View previous topic :: View next topic » 
Author Message
fordcam
PostPosted: Fri Mar 29, 2002 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
fordcam
PostPosted: Wed Apr 03, 2002 4:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
dpchiesa
PostPosted: Mon Jun 03, 2002 3:26 pm    Post subject: string != Array Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » 2043 in ActiveX
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.