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.messagin g, I also tried windows
API RegisterWindowM essage but no luck.
Hope someone can give me some suggestions.
Thanks!!! 3 3410
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.
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.j a.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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 that does pretty much the
same thing.
My old program simply sent and received SMS messages via a Nokia phone
connected to the computer running the utility.
I now have to write the same type program and instead of using a cellphone
connected...
|
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 the UdpClient class to receive, it never works. The messages
are never received (no exceptions). If I use a normal socket configured to
listen for Udp messages, it works perfectly.
Below is my sample code. It is only test code - I know the...
|
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 that UdpClient.Receive method always throws following
exception, even though
I verified that message was successfuly received by devices and responses
were sent back:
|
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.
|
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 doing
so, a device (of which I will know nothing about) will receive my broadcast
and send out a broadcast of its own. Using Ethereal (LAN packet sniffer), I
can see my broadcast, and I can see the device broadcast. I cannot however
receive...
| |
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, process and
output to the screen in my application when a message arrived. But the
problem is how do I read the SMS message immediately when it arrived
without my handphone BeEPINg for new message ? I read up the AT
commands, but when getting down...
|
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 who answers the broadcast, so i know that it
sends a reply, but i cant figure out why my C# client cant receive it..
Any input on whats wrong with my code will be appreciated
//My code...
|
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 weird thing on Windows XP.
I'm using Python 2.5 with latest pywin32 from Mark Hammond.
|
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 working just fine except of one
little thing. whenever the client tries to receive a message the server has
sent it goes into a hang. unfortunately without an error or exception at
all.
the communication itself (sending message from client to...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
| |