A
ARRAYlyf
Unregistered / Unconfirmed
GUEST, unregistred user!
Delphi中代码:<br> public<br> m_data:array[0..49] of byte;//要把这个数组的内容传给其它进程使用.<br>...<br> sendmessage(mvchandle,WM_DELPHI_MESSAGE,wParam,lParam);<br>[red]请问如何将lParam 与m_data数组联系起来.[/red]<br><br> <br><br><br>vc中是这样处理的:<br>//处理WM_DELPHI_MESSAGE消息<br>onmessagebuf(WPARAM wParam,LPARAM lParam)<br>{<br> CString str;<br> int len=(int)wParam;<br> UCHAR buff[50];<br> memset(buff,0,50);<br> memcpy(buff,(UCHAR*)lParam,50); //处理正常<br>....<br>}