CFileDialog Dlg(FALSE, NULL, NULL, OFN_EXPLORER|OFN_READONLY,"文本文件 (*.txt)|*.obj|All Files (*.*)|*.*||");
CString strReadFileName;
char *file12;
if(Dlg.DoModal ()==IDOK)
{
strReadFileName=Dlg.GetPathName ();
int strLength =strReadFileName.GetLength() + 1;
char *pValue = new char[strLength];
strncpy(pValue, strReadFileName, strLength);
file12 =pValue;
file=file12;
}