Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRead Hexadecimal Number Pin
shereem khaleel9-May-06 13:41
shereem khaleel9-May-06 13:41 
AnswerRe: Read Hexadecimal Number Pin
patnsnaudy9-May-06 14:30
patnsnaudy9-May-06 14:30 
QuestionRegOpenKeyEx Question Pin
maneor9-May-06 12:57
maneor9-May-06 12:57 
AnswerRe: RegOpenKeyEx Question Pin
Nibu babu thomas9-May-06 18:59
Nibu babu thomas9-May-06 18:59 
GeneralRe: RegOpenKeyEx Question Pin
maneor10-May-06 12:40
maneor10-May-06 12:40 
GeneralRe: RegOpenKeyEx Question Pin
Nibu babu thomas10-May-06 17:25
Nibu babu thomas10-May-06 17:25 
AnswerRe: RegOpenKeyEx Question Pin
Frank K9-May-06 20:25
Frank K9-May-06 20:25 
QuestionCombo box control Pin
elephantstar9-May-06 12:21
elephantstar9-May-06 12:21 
QuestionLoading DLL inside the code Pin
Nacho Chip9-May-06 12:12
Nacho Chip9-May-06 12:12 
AnswerRe: Loading DLL inside the code Pin
Nibu babu thomas9-May-06 18:56
Nibu babu thomas9-May-06 18:56 
AnswerRe: Loading DLL inside the code Pin
Hamid_RT9-May-06 19:19
Hamid_RT9-May-06 19:19 
QuestionMDI Question Pin
BlitzPackage9-May-06 10:41
BlitzPackage9-May-06 10:41 
AnswerRe: MDI Question Pin
Cool Ju9-May-06 21:01
Cool Ju9-May-06 21:01 
GeneralMDI Question Pin
BlitzPackage10-May-06 2:45
BlitzPackage10-May-06 2:45 
GeneralRe: MDI Question Pin
Cool Ju10-May-06 21:23
Cool Ju10-May-06 21:23 
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 

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.