Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
method argument as final 1 74
wordappend challenge 8 149
Copy Files - Python 7 73
what is the main difference between git clone and fetch ann pull and push commands 2 73
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 …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This video teaches viewers about errors in exception handling.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

867 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

21 Experts available now in Live!

Get 1:1 Help Now