As shown in figure if you still want to send the type int m_JAC and int class array m_JA, code should be how to write
CodePudding user response:
Define a structure, put inside N types of N variables, and then send this structure with respect to OKCodePudding user response:
Copydata news, such asCodePudding user response:
Understand the casting? Directly transfer data pointerin the past
Send int m_JAC that turn (WPARAM) & amp; M_JAC
Int class array m_JA, namely transfer (WPARAM) m_JA
When receiving data through data pointer over there reduction back
Int * data=https://bbs.csdn.net/topics/(int *) XXXX.
CodePudding user response:
You are to send a message across processes? Be careful to ensure the validity of the data, such as you pass a pointer to another process