Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFileDialog doubt Pin
Roger Stoltz27-Jan-10 0:55
Roger Stoltz27-Jan-10 0:55 
GeneralRe: CFileDialog doubt Pin
Rajesh R Subramanian27-Jan-10 1:01
professionalRajesh R Subramanian27-Jan-10 1:01 
GeneralRe: CFileDialog doubt Pin
CPallini27-Jan-10 1:45
mveCPallini27-Jan-10 1:45 
GeneralRe: CFileDialog doubt Pin
Rajesh R Subramanian27-Jan-10 4:03
professionalRajesh R Subramanian27-Jan-10 4:03 
AnswerRe: CFileDialog doubt [modified] Pin
CPallini27-Jan-10 0:49
mveCPallini27-Jan-10 0:49 
GeneralRe: CFileDialog doubt Pin
Member 439977127-Jan-10 1:09
Member 439977127-Jan-10 1:09 
GeneralRe: CFileDialog doubt Pin
CPallini27-Jan-10 1:39
mveCPallini27-Jan-10 1:39 
GeneralRe: CFileDialog doubt Pin
Member 439977127-Jan-10 1:51
Member 439977127-Jan-10 1:51 
Dear Pallini thanks for your reply!

I tried with \0 still dialog not filtering. please check the code below.

CFileDialog dlgFile(TRUE);
CString fileName;
const int c_cMaxFiles = 100;
const int c_cbBuffSize = (c_cMaxFiles * (MAX_PATH + 1)) + 1;
dlgFile.GetOFN().lpstrFile = fileName.GetBuffer(c_cbBuffSize);
dlgFile.GetOFN().nMaxFile = c_cMaxFiles;
dlgFile.m_ofn.lpstrInitialDir = m_sWorkpathPdm;
dlgFile.m_ofn.lpstrFilter = _T("*.sct\0");
dlgFile.DoModal();
fileName.ReleaseBuffer();
if (!fileName.IsEmpty())
    m_sMapFileName = fileName;
UpdateData(FALSE);


Regards,
Anil

hi

GeneralRe: CFileDialog doubt Pin
CPallini27-Jan-10 2:04
mveCPallini27-Jan-10 2:04 
GeneralRe: CFileDialog doubt Pin
Member 439977127-Jan-10 2:11
Member 439977127-Jan-10 2:11 
GeneralRe: CFileDialog doubt Pin
CPallini27-Jan-10 2:27
mveCPallini27-Jan-10 2:27 
GeneralRe: CFileDialog doubt Pin
Roger Stoltz27-Jan-10 1:34
Roger Stoltz27-Jan-10 1:34 
JokeRe: CFileDialog doubt Pin
CPallini27-Jan-10 1:36
mveCPallini27-Jan-10 1:36 
QuestionSMTP Pin
kk.tvm26-Jan-10 23:25
kk.tvm26-Jan-10 23:25 
AnswerRe: SMTP Pin
CPallini26-Jan-10 23:44
mveCPallini26-Jan-10 23:44 
AnswerRe: SMTP Pin
Moak28-Jan-10 13:56
Moak28-Jan-10 13:56 
QuestionMessage Removed Pin
26-Jan-10 23:11
tokime26-Jan-10 23:11 
AnswerRe: need source code for dynamic neural network.. PinPopular
CPallini26-Jan-10 23:14
mveCPallini26-Jan-10 23:14 
AnswerRe: need source code for dynamic neural network.. Pin
Nelek27-Jan-10 0:38
protectorNelek27-Jan-10 0:38 
AnswerRe: need source code for dynamic neural network.. Pin
Richard MacCutchan27-Jan-10 2:04
mveRichard MacCutchan27-Jan-10 2:04 
AnswerGive me a copy when it is ready Pin
Rozis27-Jan-10 11:42
Rozis27-Jan-10 11:42 
QuestionSetting the background colour of CListCtrl Item Pin
maycockt26-Jan-10 22:36
maycockt26-Jan-10 22:36 
AnswerRe: Setting the background colour of CListCtrl Item Pin
«_Superman_»26-Jan-10 22:44
professional«_Superman_»26-Jan-10 22:44 
AnswerRe: Setting the background colour of CListCtrl Item Pin
CPallini26-Jan-10 22:59
mveCPallini26-Jan-10 22:59 
GeneralRe: Setting the background colour of CListCtrl Item Pin
maycockt27-Jan-10 1:38
maycockt27-Jan-10 1:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.