CFileDialog dlg(TRUE); dlg.m_ofn.Flags |= OFN_ALLOWMULTISELECT; dlg.m_ofn.lpstrFile = myPoint;
dlg.m_ofn.nMaxFile = 1024; ASSERT_VALID(&dlg);
if (dlg.DoModal()==IDOK)
{
// CString FullPathName = dlg.GetFileName();
// DoExcelConversion(FullPathName);
POSITION m_pos = dlg.GetStartPosition();
do
{
CString FullPathName = dlg.GetNextPathName(m_pos);
DoExcelConversion(FullPathName);
}while(m_pos!=NULL);
}
dlg.m_ofn.nMaxFile = 1024; ASSERT_VALID(&dlg);
if (dlg.DoModal()==IDOK)
{
// CString FullPathName = dlg.GetFileName();
// DoExcelConversion(FullPathName);
POSITION m_pos = dlg.GetStartPosition();
do
{
CString FullPathName = dlg.GetNextPathName(m_pos);
DoExcelConversion(FullPathName);
}while(m_pos!=NULL);
}
struct tagOFNA pp;
memset(&pp,0,sizeof(struct tagOFNA));
pp.lStructSize=sizeof(struct tagOFNA);
pp.hwndOwner=m_hWnd;
pp.hInstance=hInst;
pp.lpstrFilter=szfilefilter[0];
pp.nFilterIndex=1;
pp.lpstrFile=szfilepath;
pp.nMaxFile=sizeof(szfilepath);
pp.lpstrFileTitle=szfilename;
pp.nMaxFileTitle=sizeof(szfilename);
pp.Flags=OFN_FILEMUSTEXIST;
GetOpenFileName(&pp);
CHAR *szfilefilter[]={"*.*","*.bmp","*.lst"};