Solved

Formatting message from .NET MSMQ message so VB6 MSMQ objects can read

Posted on 2004-08-03
5
660 Views
Last Modified: 2012-05-05
I am attempting to package data in a VB.NET application and send it to a message queue.  The application reading that message queue is written in VB6.  The VB6 application is unable to properly read the message body.

I have tried using all the different formatters available but they do not seem to make a difference (other than when using the XML formatter i can read the xml, but i don't want to have to do that).

Specifically I want to packaga a byte array in VB.net and unpackage it in VB6.  All using MSMQ v3.

Thanks
0
Comment
Question by:BJohnston
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 1

Expert Comment

by:injvstice
ID: 11759201
I believe you have to use the ActiveX formatter in your dotnet application. This will allow the serialization to use the formatting supported by COM. The XML/SOap formatters are not supported natively in VB6, IIRC.

The other alternative is to just use the XML formater, and then use the XML parser on the VB6 size to parse the message. You lose the ability to automatically deserialize a message, but I don't think that's that big of a deal. Basically just read the xml, then load it as an XML document (.LoadXML  method) into an XML Document object and then use XPath queries...

0
 

Author Comment

by:BJohnston
ID: 11765391
I eventually got to the point where I simply wrote to the BodyStream property of the Message and sent it that way - it worked ok so I just ignored the Formatter property.  I would still like to be able to figure out how to send packets natively (for instance using the ActiveX formatter).  I was unable to get the ActiveX formatter to generate anything that was readable by the VB6 client.
0
 

Author Comment

by:BJohnston
ID: 12047010
Please close question and refund points.  Thank you.
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 12088567
PAQed, with points refunded (250)

GhostMod
Community Support Moderator
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question