请看我这样使用GetOpenFileName为何会非法操作
BOOL boolRtn;
LPOPENFILENAME lpofn;
//char szFile[260];
unsigned short *szFile=new unsigned short[260];
memset(&lpofn, 0, sizeof(OPENFILENAME));
CString strFilter("*.*");
CString strTitle("*.*");
lpofn->lStructSize = sizeof(OPENFILENAME);
lpofn->hwndOwner = NULL;
lpofn->lpstrFilter = strFilter;
lpofn->lpstrCustomFilter = NULL;
lpofn->nFilterIndex = 1;
lpofn->lpstrFile = szFile;
lpofn->nMaxFile = sizeof(szFile);
lpofn->lpstrFileTitle = NULL;
lpofn->nMaxFileTitle = 0;
lpofn->lpstrInitialDir = NULL;
lpofn->lpstrTitle = strTitle;
lpofn->lpstrDefExt = NULL;
lpofn->Flags = OFN_HIDEREADONLY | OFN_FILEMUSTEXIST;
boolRtn=GetOpenFileName(lpofn);