Solved

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

Posted on 2004-08-03
5
647 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
Comment Utility
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
Comment Utility
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
Comment Utility
Please close question and refund points.  Thank you.
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
Comment Utility
PAQed, with points refunded (250)

GhostMod
Community Support Moderator
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now