Click here to Skip to main content
15,893,564 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MDI Question Pin
BlitzPackage11-May-06 1:38
BlitzPackage11-May-06 1:38 
QuestionPlease help with data from DB into MFC app (edits) Pin
PatteTheHCCoder9-May-06 9:57
PatteTheHCCoder9-May-06 9:57 
QuestionHow to get Activex controls Version? Pin
CodeVarma9-May-06 8:18
CodeVarma9-May-06 8:18 
AnswerRe: How to get Activex controls Version? Pin
ramyasangeet11-May-06 19:19
ramyasangeet11-May-06 19:19 
QuestionHow to get Activex controls Version? Pin
CodeVarma9-May-06 8:18
CodeVarma9-May-06 8:18 
QuestionHow to tell whether explorer is hiding extensions for known file types ?. Pin
Atom9-May-06 8:06
Atom9-May-06 8:06 
AnswerRe: How to tell whether explorer is hiding extensions for known file types ?. Pin
David Crow9-May-06 8:19
David Crow9-May-06 8:19 
GeneralRe: How to tell whether explorer is hiding extensions for known file types ?. Pin
Atom9-May-06 11:09
Atom9-May-06 11:09 
Thanks David your advice was very helpful. Although it hasn't entirely solved my problem, which is in code similar to this.

<br />
CFileDialog D;<br />
<br />
if( D.DoModal() == IDOK )<br />
{<br />
    CString strFPN = D.GetFileName();<br />
    CString strExt = D.GetFileExt();<br />
<br />
    CString strFPNandExt = strFPN + strExt;<br />
<br />
    // Do stuff here with strFPNandExt...<br />
}<br />


My problem is that when explorer is hiding file extensions, CFileDialog::GetFileExt() returns a null string.
So what I really need to know is whether there is a way to get the file extension of a file that is selected in CFileDialog, (or maybe anywhere in the shell) when file extensions are hidden.

I don't really want to have a registry value changed and then restored
when CFileDialog::DoModal() has finished its business.
GeneralRe: How to tell whether explorer is hiding extensions for known file types ?. Pin
David Crow10-May-06 3:13
David Crow10-May-06 3:13 
GeneralRe: How to tell whether explorer is hiding extensions for known file types ?. Pin
Atom10-May-06 6:33
Atom10-May-06 6:33 
QuestionProgramming Chip Cards Pin
branebb9-May-06 7:58
branebb9-May-06 7:58 
Questionget the coordinates of a pixel Pin
baile799-May-06 7:26
baile799-May-06 7:26 
AnswerRe: get the coordinates of a pixel Pin
David Crow9-May-06 7:42
David Crow9-May-06 7:42 
QuestionSOLVED! info in char variable changes to weird characters Pin
ilion blaze9-May-06 6:37
ilion blaze9-May-06 6:37 
QuestionMAPI application problem Pin
msolh9-May-06 6:08
msolh9-May-06 6:08 
QuestionRe: MAPI application problem Pin
David Crow9-May-06 6:09
David Crow9-May-06 6:09 
AnswerRe: MAPI application problem Pin
msolh9-May-06 6:15
msolh9-May-06 6:15 
GeneralRe: MAPI application problem Pin
David Crow9-May-06 7:36
David Crow9-May-06 7:36 
GeneralRe: MAPI application problem Pin
msolh9-May-06 7:54
msolh9-May-06 7:54 
QuestionRe: MAPI application problem Pin
David Crow10-May-06 3:16
David Crow10-May-06 3:16 
AnswerRe: MAPI application problem Pin
msolh10-May-06 3:37
msolh10-May-06 3:37 
QuestionCreating Help for vc++ application Pin
sudeep_br9-May-06 5:29
sudeep_br9-May-06 5:29 
AnswerRe: Creating Help for vc++ application Pin
bob169729-May-06 6:02
bob169729-May-06 6:02 
AnswerRe: Creating Help for vc++ application Pin
David Crow9-May-06 6:11
David Crow9-May-06 6:11 
GeneralRe: Creating Help for vc++ application Pin
toxcct9-May-06 6:17
toxcct9-May-06 6:17 

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.