菜鸟问题:如何将字符串赋给unsigned short *?
下面的代码有几个错误:
void CDIALOGDlg::OnButton1()
{
// TODO: Add your control notification handler code here
LPBROWSEINFOW PPP;
char * ddd="选择路径";
PPP->hwndOwner=NULL;
PPP->ulFlags=BIF_RETURNONLYFSDIRS;
PPP->pidlRoot=0;
PPP->lpszTitle=ddd;
LPCITEMIDLIST JJJ=SHBrowseForFolder(ppp);
SHGetPathFromIDList(JJJ,LPTSTR BBB);
AfxMessageBox(BBB);
}
其中ppp->lpszTitle是一个unsigned short *,我怎样将这个文件对话框的标题设为指定的字符串?