Solved

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

Posted on 2004-08-03
5
654 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
  • 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
firstChar challenge 13 115
Change to event 1 113
Not needed 13 113
what is the best portable software where i can test codes written in different languages 1 30
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
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 goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

809 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