Home > Software engineering >  MFC sendmessage function to send multiple messages
MFC sendmessage function to send multiple messages

Time:10-23




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 OK

CodePudding user response:

Copydata news, such as

CodePudding user response:

Understand the casting? Directly transfer data pointer
in 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
  • Related