Posted on 2002-06-03
I get a strange problem on the following code...
CString cstrInitialFileName = "Something.dat";
CString sFilter(_T("Curve Files (*.dat)|*.dat|All Files (*.*)|*.*||"));
CFileDialog dlg(TRUE, szExt, cstrInitialFileName, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, (LPCTSTR) sFilter, NULL);
if (dlg.DoModal() == IDOK)
CString cstrFileName = dlg.GetPathName();
If I run this code on Windows NT 4.0 and see the Task manager, there is an addtional thread is creating for this opendialog box and which is not releasing. but same code if run on windows 2000, the number of additonal thread count iam getting more than 4, and sometime its grows.
Friends do i have take any additional steps inorder to call CFileDialog on windows 2000????
Expecting some suggetions!!!