Sun Xin usa VS 2005 para implementar el video VC de la función del portapapeles
Modificar así:
if(OpenClipboard())
{
CString str
HANDLE hClip; p> TCHAR *pBuf;
EmptyClipboard();
GetDlgItemText(IDC_EDIT_SEND, str);
hClip = GlobalAlloc(GMEM_MOVEABLE, (str. GetLength()) +1)*2);
pBuf = (TCHAR*)GlobalLock( hClip.GetLength()+1)*2
pBuf = (TCHAR*)GlobalLock( hClip);
wcscpy(pBuf,str);
GlobalUnlock(hClip);
SetClipboardData(CF_UNICODETEXT,hClip); ();
}