[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

File Select dialog wouldn't run



i wrote this routine to run FileSelct dialog from my modeless dialog. It compile well. But click on Browse button (corresponding to btnBrowse) leads it nowhere.
 
How could it be?
 
//Case for Browse button
 case btnBrowse:
 {
   static char* filter[] = //File filter
     {
       "*", //All files
       "*.cfg", //Configuration files
     };
   static int filterIndex = 0; //Filter index
   char pathname[50];  //File pathname
   vFileSelect fsel(this); //Instance os FileSelect Dialog
 
   int oans = fsel.FileSelect("Select configuration file",pathname,49,
   filter,filterIndex);
   break;
 }
 //End Case for Browse button
 
Best regards, Alexander Gorshenin, MIPT

Reply to: