CB中就这样了
COPYDATASTRUCT cpData;
cpData.dwData = (DWORD)Application->Handle;
cpData.cbData = (DWORD)Edit1->Text.Length();
cpData.lpData = (PVOID)Edit1->Text.c_str();
HWND
hwndTarget=FindWindow(NULL,"目的程式");
hwndTarget=....//找到相应的EDIT的hwnd
SendMessage(hwndTarget, WM_COPYDATA, (WPARAM)Application->Handle,(LPARAM)&cpData );//EDIT1中的文件字发送给目的程式的EDIT