如何设置GlobalAlloc的第二个参数?
CString str;HANDLE hClip;
TCHAR *pBuf;
int i,j,k;
EmptyClipboard();
GetDlgItemText(IDC_EDIT_SEND,str);
hClip=GlobalAlloc(GMEM_MOVEABLE,str.GetLength()+1);
i=str.GetAllocLength();
j=sizeof(str);
k=str.GetLength();
pBuf=(TCHAR*)GlobalLock(hClip);
wcscpy(pBuf,str);
GlobalUnlock(hClip);
//GlobalSize(hClip);
SetClipboardData(CF_TEXT,hClip);
CloseClipboard();
如何设置GlobalAlloc的第二个参数?