Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

MSMQ body format issue.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
IdleBrain - 22 Oct 2007 22:11 GMT
I wrote an application that puts in a message into MSMQ using C++ and
MFC. If I try to put a message called 'sample' I see that the body of
the
message in MSMQ would be set to: 's.a.m.p.l.e'.

On the other hand I have a C# application that reads the same message
queue and it expects the body format to be:
'<?xml version="1.0"? >..<string>sample</string>'

Because of this body format incompatibility, I am having trouble with
C# application not being able to read the C++ application's message.
Can someone suggest on how to modify the C#/C++ application to resolve
this issue.

Thanks,
IdleBrain
sloan - 22 Oct 2007 22:30 GMT
Follow this thread, and you're figure out some formatter stuff.

http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_t
hread/thread/ea76de66f12fdb5e/fb5ce88a50c31d19?#fb5ce88a50c31d19


>I wrote an application that puts in a message into MSMQ using C++ and
> MFC. If I try to put a message called 'sample' I see that the body of
[quoted text clipped - 12 lines]
> Thanks,
> IdleBrain
John Vottero - 22 Oct 2007 22:32 GMT
>I wrote an application that puts in a message into MSMQ using C++ and
> MFC. If I try to put a message called 'sample' I see that the body of
[quoted text clipped - 9 lines]
> Can someone suggest on how to modify the C#/C++ application to resolve
> this issue.

You are using different Formatters.  Set the MessageQueue.Formatter property
to be the same in both apps.
IdleBrain - 23 Oct 2007 14:40 GMT
Thanks for your help guys.

I started using the ActiveXMessageFormatter and XMLMessageFormatter in
my C# application to read either of the message queue formats and
donot have a problem now.
sloan - 23 Oct 2007 15:48 GMT
Thanks for posting the resolution.

> Thanks for your help guys.
>
> I started using the ActiveXMessageFormatter and XMLMessageFormatter in
> my C# application to read either of the message queue formats and
> donot have a problem now.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.