PC Review


Reply
Thread Tools Rate Thread

Catching Posted Messages

 
 
Mike Bulava
Guest
Posts: n/a
 
      29th Jan 2004
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..


 
Reply With Quote
 
 
 
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      29th Jan 2004
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" <(E-Mail Removed)> wrote in message
news:eJZAw%(E-Mail Removed)...
> 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..
>
>



 
Reply With Quote
 
Mike Bulava
Guest
Posts: n/a
 
      29th Jan 2004
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]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:eJZAw%(E-Mail Removed)...
> > 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..
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Catching warning messages sent by Oracle Jess Microsoft Access VBA Modules 2 8th Sep 2009 03:31 AM
my messages not posted Hash Windows XP New Users 13 13th Mar 2006 01:06 AM
posted messages =?Utf-8?B?VG9uZmllbGQ=?= Spyware Announcements 1 27th Feb 2006 10:58 PM
Catching error messages =?Utf-8?B?U2hhcm9uSW5HYQ==?= Microsoft Access Form Coding 1 24th Feb 2005 08:42 PM
Catching driver messages Michiel Microsoft VC .NET 1 2nd Mar 2004 08:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:04 PM.