Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-08-03
5
Medium Priority
?
687 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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.
Suggested Courses

604 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