473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Sending a message

Hello
I have to send a string between two applications a sender
(VB) and receiver (VC++) on local machine. Using
SendMessage I can not send a string, using messagequeue I
can send a string, but the receiver will not know that new
message have been posted (or there is a infinity loop
which checking all the time the new message was sent, but
there is waste of processor time). Is there any other
solution to do it? Or maybe I am wrong, and there is a
solution to get know receiver that new message were sent
to messagequeue?
Can someone help me? Thanks in advance.
brgds
Jacek
Jul 21 '05 #1
6 1893
I think you should put a trigger on the queue where the
receiver should pick up the message.
A trigger is some kind of program which wakes on the
arrival of a new message.
Look for triggering in msmq. I did similar kind of thing
with IBM mq series.The trigger would invoke a com object
which does the processing of the object.
Another thing not connected with your question.
I keep getting junk emails stating that they contain the
latest security patches from microsoft.
I started getting these mails only after I posted my
question in this forums. do you have any idea of getting
rid of these messages? I get like 20 in an hour.
I appreciate your help in this regard. Let me know if you
have any questions on the triggering portion of the queues.

-----Original Message-----
Hello
I have to send a string between two applications a sender
(VB) and receiver (VC++) on local machine. Using
SendMessage I can not send a string, using messagequeue I
can send a string, but the receiver will not know that newmessage have been posted (or there is a infinity loop
which checking all the time the new message was sent, but
there is waste of processor time). Is there any other
solution to do it? Or maybe I am wrong, and there is a
solution to get know receiver that new message were sent
to messagequeue?
Can someone help me? Thanks in advance.
brgds
Jacek
.

Jul 21 '05 #2
I think you should put a trigger on the queue where the
receiver should pick up the message.
A trigger is some kind of program which wakes on the
arrival of a new message.
Look for triggering in msmq. I did similar kind of thing
with IBM mq series.The trigger would invoke a com object
which does the processing of the object.
Another thing not connected with your question.
I keep getting junk emails stating that they contain the
latest security patches from microsoft.
I started getting these mails only after I posted my
question in this forums. do you have any idea of getting
rid of these messages? I get like 20 in an hour.
I appreciate your help in this regard. Let me know if you
have any questions on the triggering portion of the queues.

-----Original Message-----
Hello
I have to send a string between two applications a sender
(VB) and receiver (VC++) on local machine. Using
SendMessage I can not send a string, using messagequeue I
can send a string, but the receiver will not know that newmessage have been posted (or there is a infinity loop
which checking all the time the new message was sent, but
there is waste of processor time). Is there any other
solution to do it? Or maybe I am wrong, and there is a
solution to get know receiver that new message were sent
to messagequeue?
Can someone help me? Thanks in advance.
brgds
Jacek
.

Jul 21 '05 #3
I'm not sure why you can't send a message with a string, look into using
WM_SETTEXT with SendMessage. Any string pointed to by the LPARAM will be
marshalled across process boundaries by the OS.

"Jacek" <ja**@intercho.com> wrote in message
news:0b****************************@phx.gbl...
Hello
I have to send a string between two applications a sender
(VB) and receiver (VC++) on local machine. Using
SendMessage I can not send a string, using messagequeue I
can send a string, but the receiver will not know that new
message have been posted (or there is a infinity loop
which checking all the time the new message was sent, but
there is waste of processor time). Is there any other
solution to do it? Or maybe I am wrong, and there is a
solution to get know receiver that new message were sent
to messagequeue?
Can someone help me? Thanks in advance.
brgds
Jacek

Jul 21 '05 #4
I'm not sure why you can't send a message with a string, look into using
WM_SETTEXT with SendMessage. Any string pointed to by the LPARAM will be
marshalled across process boundaries by the OS.

"Jacek" <ja**@intercho.com> wrote in message
news:0b****************************@phx.gbl...
Hello
I have to send a string between two applications a sender
(VB) and receiver (VC++) on local machine. Using
SendMessage I can not send a string, using messagequeue I
can send a string, but the receiver will not know that new
message have been posted (or there is a infinity loop
which checking all the time the new message was sent, but
there is waste of processor time). Is there any other
solution to do it? Or maybe I am wrong, and there is a
solution to get know receiver that new message were sent
to messagequeue?
Can someone help me? Thanks in advance.
brgds
Jacek

Jul 21 '05 #5
Default marshalling should be fine, you could always try to override it and
see but I do not see why defaults shouldnt work.


"Stephen Martin" <sm*****@removethis.emsoft.andthis.ca> wrote in message
news:Or**************@TK2MSFTNGP11.phx.gbl...
I'm not sure why you can't send a message with a string, look into using
WM_SETTEXT with SendMessage. Any string pointed to by the LPARAM will be
marshalled across process boundaries by the OS.

"Jacek" <ja**@intercho.com> wrote in message
news:0b****************************@phx.gbl...
Hello
I have to send a string between two applications a sender
(VB) and receiver (VC++) on local machine. Using
SendMessage I can not send a string, using messagequeue I
can send a string, but the receiver will not know that new
message have been posted (or there is a infinity loop
which checking all the time the new message was sent, but
there is waste of processor time). Is there any other
solution to do it? Or maybe I am wrong, and there is a
solution to get know receiver that new message were sent
to messagequeue?
Can someone help me? Thanks in advance.
brgds
Jacek


Jul 21 '05 #6
Default marshalling should be fine, you could always try to override it and
see but I do not see why defaults shouldnt work.


"Stephen Martin" <sm*****@removethis.emsoft.andthis.ca> wrote in message
news:Or**************@TK2MSFTNGP11.phx.gbl...
I'm not sure why you can't send a message with a string, look into using
WM_SETTEXT with SendMessage. Any string pointed to by the LPARAM will be
marshalled across process boundaries by the OS.

"Jacek" <ja**@intercho.com> wrote in message
news:0b****************************@phx.gbl...
Hello
I have to send a string between two applications a sender
(VB) and receiver (VC++) on local machine. Using
SendMessage I can not send a string, using messagequeue I
can send a string, but the receiver will not know that new
message have been posted (or there is a infinity loop
which checking all the time the new message was sent, but
there is waste of processor time). Is there any other
solution to do it? Or maybe I am wrong, and there is a
solution to get know receiver that new message were sent
to messagequeue?
Can someone help me? Thanks in advance.
brgds
Jacek


Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: praba kar | last post by:
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ########################################## import email.Message import email.Utils...
10
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
3
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce...
3
by: Sells, Fred | last post by:
I'm using MSW XP Pro with Python 2.4 to develop but production will be Linux with Python 2.3. (could upgrade to 2.4 if absolutely necessary) I can also switch to Linux for development if...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
2
by: =?Utf-8?B?QWRl?= | last post by:
HI All, I am encountering the following error when I try to send an email through a SMTP server. I believe the problem lies with the authentication part when the network crednetials are used,...
9
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient...
4
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I use: Dim message As New MailMessage(txtTo.Text, txtFrom.Text, txtSubject.Text, txtBody.Text) Dim emailClient As New SmtpClient(txtSMTPServer.Text) emailClient.Send(message) And its...
10
by: Markgoldin | last post by:
I am sending an XML data from not dontnet process to a .Net via socket listener. Here is a data sample: <VFPData> <serverdata> <coderun>updateFloor</coderun> <area>MD2</area>...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.