简体   繁体   中英

sending user-defined structure using WM_COPYDATA message

How can i send my structure to other application and recieve 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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM