voidCMyDlg::OnBrowse()
{
//TODO: Add your control notification handler code here
//Choose a folderTCHAR szFull[_MAX_PATH];
TCHAR szDrive[_MAX_DRIVE];
TCHAR szDir[_MAX_DIR];
::GetModuleFileName(NULL, szFull,sizeof(szFull)/sizeof(TCHAR));
_tsplitpath(szFull, szDrive, szDir, NULL, NULL);
_tcscpy(szFull, szDrive);
_tcscat(szFull, szDir);
m_strPath=CString(szFull);
//MessageBox(m_strPath);
//select a file pathCListBox*pCtrl=(CListBox*)GetDlgItem( IDC_LIST1 ) ;
CFileFind finder;
//strWildcard += _T("C:\\*.*"); BOOL bWorking=finder.FindFile( m_strPath+_T("*.data")) ;
CString filename;
while(bWorking)
{
bWorking=finder.FindNextFile();
if(finder.IsDots())//ignore . and ..