我自己的CfileDialog 函数
void Mydialogt::OnTest()
{
char temp[100];
char temp1[100];
char OpenDir[256];
_getcwd(OpenDir, 256); /
CString lpszPathName("");
lpszPathName = (LPSTR)OpenDir;
lpszPathName += "//*.bin";
CFileDialog pDlg(TRUE, "bin", lpszPathName, OFN_ALLOWMULTISELECT | OFN_HIDEREADONLY |OFN_ENABLESIZING,
"BIN 文件(*.bin)|*.bin||"); // BIN文件 显示在对话框下方的提示 *.bin为对话框中提示可选类型
if(pDlg.DoModal() == IDOK)
{
UpdateData(TRUE);
CString SaveName = pDlg.GetFileName();
UpdateData(FALSE);
for(int i =0 ; i<21 ; i++)
temp1[i] = SaveName[i];
temp1[21] = '/0';
sprintf(temp, "ROM Ver. : %s", temp1);
PutString(temp,1);
VerCheck[0] = SaveName[20];
}