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

Catching Posted Messages

I'm creating a Custom Plug-in for an ATI Remote, I downloaded there SDK but
the damn thing is all in Unmanaged C++. In there example they are posting
messages to a Window to get the command to execute.. So that I don't have
to change much of the C++ code, I want to post message for my application
just like the what is done in the Example. My question is though How can I
retrieve the messages in my VB.Net Application posted from the C++ dll?
I've looked and the MessageQueue object but that isn't going to work because
I don't have messagequeuing installed. Does anyone know how I can know when
the message is posted or have a better suggestion, I'd Like to stay away
from changing too much of the C++ code cause I'm finding out that I don't
know nearly as much about it as i thought I did..
Nov 20 '05 #1
2 936
Mike,
A "better" solution is .NET remoting. ;-)

However to get what you have to work, you can override the Control.WndProc
method to process Windows messages sent to your app.

http://msdn.microsoft.com/library/de...dProcTopic.asp

To send a message to the C++ app, you will need to declare the SendMessage
Win32 API. (I don't have a sample handy.)

Hope this helps
Jay
"Mike Bulava" <mb*****@comcast.net> wrote in message
news:eJ****************@TK2MSFTNGP10.phx.gbl...
I'm creating a Custom Plug-in for an ATI Remote, I downloaded there SDK but the damn thing is all in Unmanaged C++. In there example they are posting
messages to a Window to get the command to execute.. So that I don't have
to change much of the C++ code, I want to post message for my application
just like the what is done in the Example. My question is though How can I retrieve the messages in my VB.Net Application posted from the C++ dll?
I've looked and the MessageQueue object but that isn't going to work because I don't have messagequeuing installed. Does anyone know how I can know when the message is posted or have a better suggestion, I'd Like to stay away
from changing too much of the C++ code cause I'm finding out that I don't
know nearly as much about it as i thought I did..

Nov 20 '05 #2
S.O.A.B.!! Remoting didn't even cross my mind... That might be the best
thing to do.. Not I just have to figure out how to do it in C++

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Mike,
A "better" solution is .NET remoting. ;-)

However to get what you have to work, you can override the Control.WndProc
method to process Windows messages sent to your app.

http://msdn.microsoft.com/library/de...dProcTopic.asp
To send a message to the C++ app, you will need to declare the SendMessage
Win32 API. (I don't have a sample handy.)

Hope this helps
Jay
"Mike Bulava" <mb*****@comcast.net> wrote in message
news:eJ****************@TK2MSFTNGP10.phx.gbl...
I'm creating a Custom Plug-in for an ATI Remote, I downloaded there SDK but
the damn thing is all in Unmanaged C++. In there example they are posting messages to a Window to get the command to execute.. So that I don't have to change much of the C++ code, I want to post message for my application just like the what is done in the Example. My question is though How can I
retrieve the messages in my VB.Net Application posted from the C++ dll?
I've looked and the MessageQueue object but that isn't going to work

because
I don't have messagequeuing installed. Does anyone know how I can know

when
the message is posted or have a better suggestion, I'd Like to stay away
from changing too much of the C++ code cause I'm finding out that I

don't know nearly as much about it as i thought I did..


Nov 20 '05 #3

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

Similar topics

6
by: F. Da Costa | last post by:
Hi, The following snip works totally ok in a Gecko browser, for the 'normal keys as well as the cursorkeys. <p>Key in the searchable 'thing':<br /> <input type="text" value="" id="txt1"...
1
by: Michiel | last post by:
Hello, I want to see if the driver of my capture card sends messages when it recieves video input. In order to do this, I built a Windows Service, which contains a message loop. How can I...
1
by: NvrBst | last post by:
Hello. I was wondering if its possible? Basically my program has a ThreadPool and that ThreadPool works on many different methods. Its very important to me that no pop up's ever occur; I have a...
2
by: Anders Borum | last post by:
Hello! I was looking at marking objects with a changed state, once properties have been changed. The reason behind this is, that I would like to enlist such objects for processing in a...
7
by: Derek Schuff | last post by:
I'm sorry if this is a FAQ or on an easily-accesible "RTFM" style page, but i couldnt find it. I have some code like this: for line in f: toks = line.split() try: if int(toks,16) ==...
2
by: Eric Lilja | last post by:
Hello, consider this complete program: #include <iostream> #include <string> using std::cout; using std::endl; using std::string; class Hanna {
1
by: Sridhar | last post by:
Hi, I am not able to receive correct exception messages from a different project which is added as a reference as a dll. If I add that different project to the same solution and now add it as a...
5
by: lord.zoltar | last post by:
How can I prevent the big close button in the top of the window from closing the window? I want to have and "are you sure?" confirmation so the user must press "Yes" before the program ends. Right...
2
by: toringe | last post by:
Hi I try to connect to a cardreader from a VB.NET 2003 application. The cardreader manufacturer has provided an OCX to access the reader trough. The OCX sends status messages back by using...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
tracyyun
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...

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.