|
应该是进程内传递数据的问题吧?
我用的是自定义消息,在dll中
int cTxtLen = GetWindowTextLength(p->hwnd);
char* szWndName = new char[cTxtLen + 1];
GetWindowText(p->hwnd,szWndName, cTxtLen+1);
SendMessage(g_hWnd,WM_DISPLAY_MSG,(WPARAM)szWndName,0);
delete [] szWndName;
exe接受端该如何写呢?
我自己写的总是不对。 |
|