sendmessage指定数据的接收者不就行了?

解决方案 »

  1.   

    我碰到的问题主要有以下几个
    1、怎么判断是对方终端发来的消息而不是windows的消息
    2、消息来了怎么触发form事件
    谢谢你了
      

  2.   

    需要调用SendMessage函数返回True和False。The data being passed must not contain pointers or other references to objects not accessible to the application receiving the data. While this message is being sent, the referenced data must not be changed by another thread of the sending process. The receiving application should consider the data read-only. The lParam parameter is valid only during the processing of the message. The receiving application should not free the memory referenced by lParam. If the receiving application must access the data after SendMessage returns, it must copy the data into a local buffer. When you send a WM_COPYDATA message, SendMessage allocates a block of memory cbData bytes in size and copies the data from the caller's address space to this block. It then sends the message to the destination window. When the receiving window procedure processes this message, the lParam parameter is a pointer to a COPYDATASTRUCT structure that exists in the address space of the receiving process. The lpData member is a pointer to the copied block of memory, and the address reflects the memory location in the receiving process's address space. 
      

  3.   

    邮件我已经收到,你有oicq吗?我的3366083