473,396 Members | 1,853 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,396 software developers and data experts.

Receive Windows Broadcast Messages from a C++ program.

Hi,

My app is written in vb.net 2003, I need to receive broadcast messages
sent from another application written in VC++6.
It doesn't seem i can import system.messaging, I also tried windows
API RegisterWindowMessage but no luck.
Hope someone can give me some suggestions.
Thanks!!!


Jun 12 '07 #1
3 3393
siujoe wrote:
My app is written in vb.net 2003, I need to receive broadcast messages
sent from another application written in VC++6.
"Broadcast Message"?
Does that translate to a Windows Message?
If so, override WndProc in your Form and pick out the relevant Message.

HTH,
Phill W.
Jun 13 '07 #2
Thanks Phill,

Yes it is Windows Message, I found some examples on vb6, but having problem
translating to vb.net...

how do you convert Addressof funcname to vb.net?
"Phill W." <p-.-a-.-w-a-r-d-@-o-p-e-n-.-a-c-.-u-kwrote in message
news:f4**********@south.jnrs.ja.net...
siujoe wrote:
>My app is written in vb.net 2003, I need to receive broadcast messages
sent from another application written in VC++6.

"Broadcast Message"?
Does that translate to a Windows Message?
If so, override WndProc in your Form and pick out the relevant Message.

HTH,
Phill W.

Jun 13 '07 #3
siujoe wrote:
Yes it is Windows Message, I found some examples on vb6, but having problem
translating to vb.net...
Handling Windows Messages is done totally different in VB.Net.
Pop this into your Form code:

Protected Overrides Sub WndProc(ByRef m As Message)

Const WM_ACTIVATEAPP as Integer = &H1C

Select Case m.Msg
Case WM_ACTIVATEAPP

' Switch from another Application

End Select

' Very, *very* important bit!!
MyBase.WndProc(m)

End Sub

HTH,
Phill W.
Jun 14 '07 #4

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

Similar topics

3
by: Mark | last post by:
Hi all, about 2 years ago I wrote a small utility that was used to send and receive SMS messages via a mobile phone (3rd party COM object as used as interface). I now have to write another program...
1
by: Dan Kelley | last post by:
I have 2 projects - 1 Winform project that sends Udp messages using the UdpClient class when a button is clicked, and a Console application that listens for these Udp messages. If I try to use...
1
by: Steve | last post by:
Please take a look at the simple code segment below and advise me what is wrong. According to the help and examples I've seen it should work unless I misunderstand something. The problem is...
1
by: Saso Zagoranski | last post by:
Hi! I have simple client/server game that uses sockets to transfer different messages. The server and the client are running on the same machine.
2
by: Shawn G. | last post by:
I'm going around in circles here and need some help. Scenario: I am using (have used) either the UDPClient class or Sockets class to broadcast some bytes to 255.255.255.255 (udp protocol). Upon...
6
by: ransoma22 | last post by:
I developing an application that receive SMS from a connected GSM handphone, e.g Siemens M55, Nokia 6230,etc through the data cable. The application(VB.NET) will receive the SMS automatically,...
2
by: Daniel Lindberg | last post by:
Hi, im a beginner in C# and i just cant seem to get my udp broadcasting to work. What happens is that it just locks down on the Receive call and never gets any data. I have the code for the server...
9
by: Irmen de Jong | last post by:
Hello Sorry this might be a bit offtopic but I don't really know where else to post this question. If you could point me in the right direction that is much appreciated. I'm running into a...
3
by: Joe Blauth | last post by:
Hi all, I am currently working on a small application that sends messages from a client to a server and receives messages in return. Basically the functionality is made with sockets which is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
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,...

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.