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.
Kerem Gümrükcü - 01 Aug 2005 00:19 GMT
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ü
> Hi,
> I am sending windoew message from a c# application to c++(unmanage)
[quoted text clipped - 13 lines]
>
> Thanks.