Sending message from C++ dll to C# MessageWindow class

G

Guest

I have a c++ exe that needs to send a message to a C# application. This c#
application has a Windows Form and a class that extends MessageWindow. I need
to let the c++ exe know the HWND of the MessageWindow so that it can send
messages, so I am setting a specific text as the value for Text property of
the MessageWindow class and using this text to FindWindow from c++. But it
could not find it as it is not an active top level window. I have read in one
of the threads that suggests to use this technic but I had no success with it.

Here is the thread that suggested it.
http://groups.google.com/group/micr...af7?q=COPYDATASTRUCT&rnum=13#3729c196533d9af7

Any help or suggestions are greatly appreciated.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top