Click here to Skip to main content
15,892,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Proverbial good example of CTreeCtrl Pin
Sauro Viti5-Nov-10 6:40
professionalSauro Viti5-Nov-10 6:40 
GeneralRe: Proverbial good example of CTreeCtrl Pin
David Crow5-Nov-10 4:00
David Crow5-Nov-10 4:00 
QuestionChanging initial directory on File Open Dialog in MFC Pin
Ed The C4-Nov-10 7:48
Ed The C4-Nov-10 7:48 
AnswerRe: Changing initial directory on File Open Dialog in MFC Pin
Code-o-mat4-Nov-10 8:12
Code-o-mat4-Nov-10 8:12 
AnswerRe: Changing initial directory on File Open Dialog in MFC Pin
«_Superman_»4-Nov-10 8:31
professional«_Superman_»4-Nov-10 8:31 
GeneralRe: Changing initial directory on File Open Dialog in MFC [modified] Pin
Ed The C5-Nov-10 6:20
Ed The C5-Nov-10 6:20 
QuestionMessage Removed Pin
3-Nov-10 23:52
piul3-Nov-10 23:52 
AnswerRe: How to check if char* is a number Pin
CPallini4-Nov-10 0:03
mveCPallini4-Nov-10 0:03 
GeneralRe: How to check if char* is a number Pin
piul4-Nov-10 0:08
piul4-Nov-10 0:08 
GeneralRe: How to check if char* is a number Pin
Maximilien4-Nov-10 0:09
Maximilien4-Nov-10 0:09 
GeneralRe: How to check if char* is a number Pin
piul4-Nov-10 0:30
piul4-Nov-10 0:30 
QuestionRe: How to check if char* is a number Pin
CPallini4-Nov-10 0:51
mveCPallini4-Nov-10 0:51 
AnswerRe: How to check if char* is a number Pin
piul4-Nov-10 1:30
piul4-Nov-10 1:30 
AnswerRe: How to check if char* is a number [modified] Pin
Alain Rist4-Nov-10 1:44
Alain Rist4-Nov-10 1:44 
GeneralRe: How to check if char* is a number Pin
federico.strati4-Nov-10 0:11
federico.strati4-Nov-10 0:11 
QuestionQuery For CFileDialog? Pin
Le@rner3-Nov-10 20:43
Le@rner3-Nov-10 20:43 
hi i m using CFileDialog to open the file.

but there is one problem,

CString filter( "Text Files(*.txt)|*.txt||");
		CWaitCursor cwt;
		
		CFileDialog fileDlg(TRUE, NULL, NULL, OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST|OFN_HIDEREADONLY,filter,this,0);

		if (fileDlg.DoModal () == IDCANCEL) 
		{
			return;
		}
				CString OpenFile = fileDlg.GetPathName ();

		SetDlgItemText(IDC_PATH,OpenFile);


i want to open only .txt files,so i provide .txt format in filter.
but i open the dialog box and enter file name with some other extension its display and open.

i want as the list of CFileDialog not display the oher extension file same as its not open the other extension file from File Name field .

please help me for this.

thanks in advance.
AnswerRe: Query For CFileDialog? Pin
Maximilien3-Nov-10 21:30
Maximilien3-Nov-10 21:30 
AnswerRe: Query For CFileDialog? Pin
GAJERA3-Nov-10 21:35
GAJERA3-Nov-10 21:35 
QuestionRe: Query For CFileDialog? [modified] Pin
David Crow4-Nov-10 2:58
David Crow4-Nov-10 2:58 
AnswerRe: Query For CFileDialog? Pin
Alain Rist4-Nov-10 3:56
Alain Rist4-Nov-10 3:56 
QuestionError "string data,right truncated" generate when trying to Update by CRecordset? Pin
Le@rner3-Nov-10 18:57
Le@rner3-Nov-10 18:57 
AnswerRe: Error "string data,right truncated" generate when trying to Update by CRecordset? Pin
Stephen Hewitt3-Nov-10 19:33
Stephen Hewitt3-Nov-10 19:33 
GeneralRe: Error "string data,right truncated" generate when trying to Update by CRecordset? Pin
Le@rner3-Nov-10 19:34
Le@rner3-Nov-10 19:34 
AnswerRe: Error "string data,right truncated" generate when trying to Update by CRecordset? Pin
David Crow4-Nov-10 3:01
David Crow4-Nov-10 3:01 
QuestionInterlockedCompareExchange/cmpxchg-lock free queue Pin
Endaroza3-Nov-10 11:53
Endaroza3-Nov-10 11:53 

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.