RegisterWindowMessage

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Hi,
I am sending windoew message from a c# application to c++(unmanage)
application using this code
System.UInt32 rm= RegisterWindowMessage("12345");

System.IntPtr ptr=(IntPtr)HWND_BROADCAST;

PostMessage(ptr,(int)rm,5,5);

PostMessage(ptr,WM_AAA,5,5);

but the c++(vc-6 mfc) dont catch the message, when i use the
RegisterWindowMessage("12345"); in the c++ application it return a diffrent
number from that in the c# application why?



Thanks.
 
Hi Dave,

check your applications with Spy++. It is included in the VC6++ and above,
also in the platformsdk
i think (but i am not sure). You can invoke it using spyxx.exe from cmd
line, if you registered the
environemt variables.

Use it to monitor the messages your application is sending or receiving...


Best Regards

Kerem Gümrükcü
 

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

Back
Top