Hi all
I use C# to read messages from msmq queue.
When I knew that it is writing in c# I can read it.
When I knew that it is writing in VB6 I can read it.
How can I know in which format the message is writing?
Moti. 7 1394
Moti,
You should only be writing one type of message to the queue. The way
queues are set up, they are pretty much application specific, and the format
of the messages running through them should be well-defined.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Moti" <Mo**@discussio ns.microsoft.co m> wrote in message
news:4A******** *************** ***********@mic rosoft.com... Hi all
I use C# to read messages from msmq queue. When I knew that it is writing in c# I can read it. When I knew that it is writing in VB6 I can read it. How can I know in which format the message is writing?
Moti.
Hi Nicholas
My queue get messages from VB6 and from C#, there are well-defined, but
if you send a message in vb6, you have to Transleate the msg body string to
UTF8.
Can I have a way to know from which type (vb6 or c#) I receive the message?
I try know the by using the mess.Body string format? (how?)
Is that the way? Is there are a better way?
Moti
"Nicholas Paldino [.NET/C# MVP]" wrote: Moti,
You should only be writing one type of message to the queue. The way queues are set up, they are pretty much application specific, and the format of the messages running through them should be well-defined.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Moti" <Mo**@discussio ns.microsoft.co m> wrote in message news:4A******** *************** ***********@mic rosoft.com... Hi all
I use C# to read messages from msmq queue. When I knew that it is writing in c# I can read it. When I knew that it is writing in VB6 I can read it. How can I know in which format the message is writing?
Moti.
Moti,
If the original application is VB, then you should set the Formatter
property on the MessageQueue class to an instance of the
ActiveXMessageF ormatter class. This should translate the messages from VB
correctly.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Moti" <Mo**@discussio ns.microsoft.co m> wrote in message
news:9D******** *************** ***********@mic rosoft.com... Hi Nicholas
My queue get messages from VB6 and from C#, there are well-defined, but if you send a message in vb6, you have to Transleate the msg body string to UTF8. Can I have a way to know from which type (vb6 or c#) I receive the message? I try know the by using the mess.Body string format? (how?) Is that the way? Is there are a better way?
Moti
"Nicholas Paldino [.NET/C# MVP]" wrote:
Moti,
You should only be writing one type of message to the queue. The way queues are set up, they are pretty much application specific, and the format of the messages running through them should be well-defined.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Moti" <Mo**@discussio ns.microsoft.co m> wrote in message news:4A******** *************** ***********@mic rosoft.com... > Hi all > > I use C# to read messages from msmq queue. > When I knew that it is writing in c# I can read it. > When I knew that it is writing in VB6 I can read it. > How can I know in which format the message is writing? > > Moti. >
Hi Nicholas
The application is in c#, but I get messages from c# + vb6 aplication!
If I know which application send it I can read it, but How can i know how
send it?
Moti Saba
"Nicholas Paldino [.NET/C# MVP]" wrote: Moti,
If the original application is VB, then you should set the Formatter property on the MessageQueue class to an instance of the ActiveXMessageF ormatter class. This should translate the messages from VB correctly.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Moti" <Mo**@discussio ns.microsoft.co m> wrote in message news:9D******** *************** ***********@mic rosoft.com... Hi Nicholas
My queue get messages from VB6 and from C#, there are well-defined, but if you send a message in vb6, you have to Transleate the msg body string to UTF8. Can I have a way to know from which type (vb6 or c#) I receive the message? I try know the by using the mess.Body string format? (how?) Is that the way? Is there are a better way?
Moti
"Nicholas Paldino [.NET/C# MVP]" wrote:
Moti,
You should only be writing one type of message to the queue. The way queues are set up, they are pretty much application specific, and the format of the messages running through them should be well-defined.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Moti" <Mo**@discussio ns.microsoft.co m> wrote in message news:4A******** *************** ***********@mic rosoft.com... > Hi all > > I use C# to read messages from msmq queue. > When I knew that it is writing in c# I can read it. > When I knew that it is writing in VB6 I can read it. > How can I know in which format the message is writing? > > Moti. >
You can try reading vb6 format then catch the exception if the message
is not in vb6 format then read it in c# format.
On Tue, 22 Mar 2005 07:41:07 -0800, "Moti"
<Mo**@discussio ns.microsoft.co m> wrote: Hi all
I use C# to read messages from msmq queue. When I knew that it is writing in c# I can read it. When I knew that it is writing in VB6 I can read it. How can I know in which format the message is writing?
Moti.
Hi QWERTY
Sorry on the late answer.
I looking for more elegant way…. But so far I think this is the only way….
Thank you
Moti
"QWERTY" wrote: You can try reading vb6 format then catch the exception if the message is not in vb6 format then read it in c# format.
On Tue, 22 Mar 2005 07:41:07 -0800, "Moti" <Mo**@discussio ns.microsoft.co m> wrote:
Hi all
I use C# to read messages from msmq queue. When I knew that it is writing in c# I can read it. When I knew that it is writing in VB6 I can read it. How can I know in which format the message is writing?
Moti.
Hi QWERTY
Sorry on the late answer.
I looking for more elegant way…. But so far I think this is the only way….
Thank you
Moti
"QWERTY" wrote: You can try reading vb6 format then catch the exception if the message is not in vb6 format then read it in c# format.
On Tue, 22 Mar 2005 07:41:07 -0800, "Moti" <Mo**@discussio ns.microsoft.co m> wrote:
Hi all
I use C# to read messages from msmq queue. When I knew that it is writing in c# I can read it. When I knew that it is writing in VB6 I can read it. How can I know in which format the message is writing?
Moti.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lindon |
last post by:
Until now I've been programming straight console apps, and all I've
been doing to compile is a simple 'gcc file1.cpp file2.cpp ....'.
What more is there to know about the compiler? I'd like to know
exactly what happens during each step. Is the compilation of dll's
(and corresponding libs on *nix) possible with only the compiler and
no platform specifc libraries (like windows.h)? What am I missing out
on?
thanks,
lin
|
by: Jeff L. |
last post by:
Maybe I'm missing the obvious solution because I've been looking at
this problem for so long, so I figured I'd throw it out and see if
anyone can come up with some ideas. :)
I'm writing a server application using VB.NET that will be
communicating with a device...the format that it uses can't be
changed. The format is something like this:
Device: <length><message>
Server: <ack> (two null bytes, or "zero length")
|
by: mike |
last post by:
I am struggling with a problem that should be easy to solve it but has me
stumped. I am writing data to a table using ADO and writing the date to this
table.
I have a calendar control on the form that allows me to choose the date. I
also have a procedure on the OnLoad event of the form to set
a data variable to NOW(). If I don't want to change this I simply write
this variable to the table.
The trouble is it insists of switching the...
|
by: Sobhan |
last post by:
Hi all,
Iam writing a small C program to print a array of numbers in
Comma Separated Values in VC++ editor.
Lets say:
Title Title1 Title2
----- ------ ------
10,20,30
50,90,100
120,180,300
|
by: Sam Halliday |
last post by:
i am currently in the process of writing a program to convert a type 1 psf font
file into a file compatible with the linux kernel's format for compiled-in fonts
(see drivers/video/console/font_8x16.c). since the cpi2fnt file used to generate
the 8x16 font has gone awol.
the problem i have encountered in the psf format
http://www.win.tue.nl/~aeb/linux/kbd/font-formats-1.html]
is that the kernel file requires all the fonts to be created...
| |
by: Nadav |
last post by:
Hi,
I am writing some kind of a file scanner, at certain time all of the files
under a certain directory will be scanned, this scan require de-compression
of common files formats such as ZIP and MSI, the ZIP file format is well
known so there is no problem of decompressing it manually, however, the MSI
format is less open… I wonder where can I find the MSI format ‘white papers’?
Are those ‘white papers’ are published? How can I...
|
by: Ven |
last post by:
Hi,
I am reading a kind of below mentioned raw data into my C++ program and
writing it out but I want this to be converted into EBCDIC format, how
can I accomplish this ?
Right now I am using the following code
ifstream Source("source_file");
ofstream Dest("dest_file");
|
by: thermate |
last post by:
http://www.latimes.com/news/nationworld/nation/la-na-libby26jan26,1,2730931.story?coll=la-headlines-nation
Aide testifies Cheney helped effort to discredit Wilson
By Richard B. Schmitt, Times Staff Writer
5:27 PM PST, January 25, 2007
WASHINGTON -- Vice President Dick Cheney and his former chief of staff,
I. Lewis "Scooter" Libby, were personally and actively involved in an
effort to spin news coverage and discredit a critic of the...
|
by: mcse jung |
last post by:
Here is asample program that writes a program and then executes it.
Do you knowof a much simpler way of writing a program that writes a program?
"""
-----------------------------------------------------------------------------
Name: _writePythonCode.py
Purpose: This script writes Python code and thentransfers control to it.
Author: MCSEJUNG
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |