Hi,

Ok, since I began writing this post, I have figured out the majority of
my problem. I started out without a clue about how to use messages in my
application (not referring to System.Messaging, but to good old windows
messages). I want a Win32 application that runs without a window. I
figured out how to add a message filter to the application before calling
Application.Run(). That solves the problem of catching the message. Now I
cannot, for the life of me, find any references to how to put a message on
the application queue. Any help would be greatly appreciated.

Thanks in advance,
Chris

Re: queueing messages by Dmitriy

Dmitriy
Thu Feb 26 11:28:17 CST 2004

Hi,

Try to P/Invoke the good old PostThreadMessage API function. You cannot use
PostMessage since you don't have a window.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Chris Ellis" <chris@RemoveThis_stompinc.com> wrote in message
news:uW1USqI$DHA.2012@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> Ok, since I began writing this post, I have figured out the majority
of
> my problem. I started out without a clue about how to use messages in my
> application (not referring to System.Messaging, but to good old windows
> messages). I want a Win32 application that runs without a window. I
> figured out how to add a message filter to the application before calling
> Application.Run(). That solves the problem of catching the message. Now
I
> cannot, for the life of me, find any references to how to put a message on
> the application queue. Any help would be greatly appreciated.
>
> Thanks in advance,
> Chris
>
>


Re: queueing messages by Claes

Claes
Fri Feb 27 02:57:25 CST 2004

Actually you can use PostMessage. Just set the hWnd parameter to null and it
will
post it to the current thread. See the docs for more info

/claes


"Dmitriy Lapshin [C# / .NET MVP]" <x-code@no-spam-please.hotpop.com> wrote
in message news:%23Lmft3I$DHA.4012@tk2msftngp13.phx.gbl...
> Hi,
>
> Try to P/Invoke the good old PostThreadMessage API function. You cannot
use
> PostMessage since you don't have a window.
>
> --
> Dmitriy Lapshin [C# / .NET MVP]
> X-Unity Test Studio
> http://www.x-unity.net/teststudio.aspx
> Bring the power of unit testing to VS .NET IDE
>
> "Chris Ellis" <chris@RemoveThis_stompinc.com> wrote in message
> news:uW1USqI$DHA.2012@TK2MSFTNGP11.phx.gbl...
> > Hi,
> >
> > Ok, since I began writing this post, I have figured out the majority
> of
> > my problem. I started out without a clue about how to use messages in
my
> > application (not referring to System.Messaging, but to good old windows
> > messages). I want a Win32 application that runs without a window. I
> > figured out how to add a message filter to the application before
calling
> > Application.Run(). That solves the problem of catching the message.
Now
> I
> > cannot, for the life of me, find any references to how to put a message
on
> > the application queue. Any help would be greatly appreciated.
> >
> > Thanks in advance,
> > Chris
> >
> >
>