Click here to Skip to main content
15,900,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: access violation in int array Pin
George_George2-Aug-07 18:24
George_George2-Aug-07 18:24 
AnswerRe: access violation in int array Pin
JudyL_MD3-Aug-07 1:48
JudyL_MD3-Aug-07 1:48 
GeneralRe: access violation in int array Pin
George_George3-Aug-07 21:42
George_George3-Aug-07 21:42 
QuestionCrashes Pin
dellthinker2-Aug-07 16:50
dellthinker2-Aug-07 16:50 
AnswerRe: Crashes Pin
Hans Dietrich2-Aug-07 19:05
mentorHans Dietrich2-Aug-07 19:05 
GeneralRe: Crashes Pin
dellthinker3-Aug-07 9:49
dellthinker3-Aug-07 9:49 
QuestionCFileDialog saving problem Pin
hxhl952-Aug-07 15:16
hxhl952-Aug-07 15:16 
AnswerRe: CFileDialog saving problem Pin
Naveen2-Aug-07 15:56
Naveen2-Aug-07 15:56 
The nFilterIndex member in the OPENFILENAME structure indicates the currently selected index in the "save as type" combobox. So can get the extesnion using this index

CString csExt = dlg.GetFileExt();
if( csExt.IsEmpty())
{
int n = filesave.m_ofn.nFilterIndex
// now if n == 1, the item is "Text files (*.txt)"
// if n == 2, the items is "All Files"
}

BTW I would like to know what will you put extesnion when user selects "All files".Laugh | :laugh:

FYI :- Normally there will not be "All files" options in the save as dialog box.


GeneralRe: CFileDialog saving problem Pin
hxhl953-Aug-07 6:42
hxhl953-Aug-07 6:42 
GeneralRe: CFileDialog saving problem Pin
Naveen3-Aug-07 14:56
Naveen3-Aug-07 14:56 
AnswerRe: CFileDialog saving problem Pin
David Crow3-Aug-07 4:02
David Crow3-Aug-07 4:02 
QuestionFont Dialog Box? Setting the font? Pin
deostroll2-Aug-07 13:07
deostroll2-Aug-07 13:07 
AnswerRe: Font Dialog Box? Setting the font? Pin
Michael Dunn2-Aug-07 13:56
sitebuilderMichael Dunn2-Aug-07 13:56 
AnswerRe: Font Dialog Box? Setting the font? Pin
Mark Salsbery2-Aug-07 13:56
Mark Salsbery2-Aug-07 13:56 
Questionhaving problem terminating a thread Pin
alberthyc2-Aug-07 8:49
alberthyc2-Aug-07 8:49 
QuestionRe: having problem terminating a thread Pin
Mark Salsbery2-Aug-07 8:55
Mark Salsbery2-Aug-07 8:55 
AnswerRe: having problem terminating a thread Pin
alberthyc2-Aug-07 9:01
alberthyc2-Aug-07 9:01 
AnswerRe: having problem terminating a thread Pin
alberthyc2-Aug-07 9:15
alberthyc2-Aug-07 9:15 
GeneralRe: having problem terminating a thread Pin
Mark Salsbery2-Aug-07 10:14
Mark Salsbery2-Aug-07 10:14 
GeneralRe: having problem terminating a thread Pin
alberthyc2-Aug-07 10:21
alberthyc2-Aug-07 10:21 
AnswerRe: having problem terminating a thread Pin
led mike2-Aug-07 9:17
led mike2-Aug-07 9:17 
GeneralRe: having problem terminating a thread Pin
alberthyc2-Aug-07 9:20
alberthyc2-Aug-07 9:20 
GeneralRe: having problem terminating a thread Pin
led mike2-Aug-07 9:24
led mike2-Aug-07 9:24 
GeneralRe: having problem terminating a thread Pin
Mark Salsbery2-Aug-07 10:15
Mark Salsbery2-Aug-07 10:15 
AnswerRe: having problem terminating a thread Pin
Tony Hill2-Aug-07 9:30
professionalTony Hill2-Aug-07 9:30 

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.