有一个CString strText[8],我现在想把它从工作线程传递到主线程中,我不知该怎么操作。
传递一个字符串我会,就是CString strText;
char *ch=strText.GetBuffer[0];
int nLen=strText.GetLength;
SendMessage(hWnd,WM_***,(WPARAM)nLen,(LPARAM)ch);
可是传递字符串数组该怎么弄呢?请大侠给指点一下
传递一个字符串我会,就是CString strText;
char *ch=strText.GetBuffer[0];
int nLen=strText.GetLength;
SendMessage(hWnd,WM_***,(WPARAM)nLen,(LPARAM)ch);
可是传递字符串数组该怎么弄呢?请大侠给指点一下
///
这个我知道。
我现在急于想搞清楚,怎么才能将CString strText[8]发送出去,该不会是多次调用SendMessage()吧?
SendMessage(hWnd,WM_***, 8,(LPARAM)strText); 在消息响应函数里将指针强制转换回来就行了CString *strs = (CString *) strText;