sending user-defined structure using WM_COPYDATA message
How can i send my structure to other application and r开发者_如何转开发ecieve it using WM_COPYDATA message?
Most of this is explained by MS at Using Data Copy.
Is there anything missing in that example?
Don't forget that you use SendMessage
and not PostMessage
, since this is the only way to force Windows to synchronize the buffer transfer!
精彩评论