Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PostMessage(): Debug vs. Release Pin
reymano26-Jan-04 5:40
reymano26-Jan-04 5:40 
GeneralMFC - Displaying time in dialog Pin
Ashman25-Jan-04 12:04
Ashman25-Jan-04 12:04 
GeneralRe: MFC - Displaying time in dialog Pin
Maximilien25-Jan-04 12:47
Maximilien25-Jan-04 12:47 
GeneralRe: MFC - Displaying time in dialog Pin
toxcct25-Jan-04 22:26
toxcct25-Jan-04 22:26 
GeneralKernel32.dll DBG error Pin
TriggerJ25-Jan-04 11:21
TriggerJ25-Jan-04 11:21 
GeneralRe: Kernel32.dll DBG error Pin
toxcct25-Jan-04 22:07
toxcct25-Jan-04 22:07 
GeneralRe: Kernel32.dll DBG error Pin
TriggerJ26-Jan-04 2:25
TriggerJ26-Jan-04 2:25 
GeneralRe: Kernel32.dll DBG error Pin
toxcct27-Jan-04 1:44
toxcct27-Jan-04 1:44 
Questionsolving Brouncker's fraction expansion? Pin
a_hyams25-Jan-04 11:12
a_hyams25-Jan-04 11:12 
AnswerRe: solving Brouncker's fraction expansion? Pin
ZoogieZork26-Jan-04 2:30
ZoogieZork26-Jan-04 2:30 
GeneralSet window title (get rid of "untitled") Pin
TolTol25-Jan-04 10:29
TolTol25-Jan-04 10:29 
GeneralRe: Set window title (get rid of "untitled") Pin
Michael Dunn25-Jan-04 18:49
sitebuilderMichael Dunn25-Jan-04 18:49 
GeneralRe: Set window title (get rid of "untitled") Pin
TolTol25-Jan-04 23:13
TolTol25-Jan-04 23:13 
GeneralWindows Hooks Pin
NMiceli25-Jan-04 10:05
NMiceli25-Jan-04 10:05 
QuestionHow to get icon given a file extension? Pin
Artem Moroz25-Jan-04 9:50
Artem Moroz25-Jan-04 9:50 
AnswerRe: How to get icon given a file extension? Pin
Michael Dunn25-Jan-04 18:51
sitebuilderMichael Dunn25-Jan-04 18:51 
You can indeed use SHGetFileInfo(). Give it a filename of "foo.xyz" (or whatever extension you're interested in, in place of .xyz) and use the SHGFI_USEFILEATTRIBUTES flag. From the docs:
pszPath
...
If the uFlags parameter includes the SHGFI_USEFILEATTRIBUTES flag, this parameter does not have to be a valid file name. The function proceeds as if the file exists with the specified name and with the file attributes passed in the dwFileAttributes parameter. This enables you to obtain information about a file type by passing just the extension for pszPath and passing FILE_ATTRIBUTE_NORMAL in dwFileAttributes.


--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber New v2.0.1! | RightClick-Encrypt
Laugh it up, fuzzball.
QuestionHow to USE C++ code in VB ?? Pin
ponka12825-Jan-04 9:30
ponka12825-Jan-04 9:30 
AnswerRe: How to USE C++ code in VB ?? Pin
David Crow26-Jan-04 2:44
David Crow26-Jan-04 2:44 
Generalweb plugin required Pin
Member 84034825-Jan-04 8:11
Member 84034825-Jan-04 8:11 
GeneralQuestion about CDateTimeCtrl Pin
Mukkie25-Jan-04 7:34
Mukkie25-Jan-04 7:34 
GeneralRe: Question about CDateTimeCtrl Pin
toxcct25-Jan-04 21:59
toxcct25-Jan-04 21:59 
GeneralEasy question on CString Pin
Anonymous25-Jan-04 6:51
Anonymous25-Jan-04 6:51 
GeneralRe: Easy question on CString Pin
Jörgen Sigvardsson25-Jan-04 6:54
Jörgen Sigvardsson25-Jan-04 6:54 
GeneralRe: Easy question on CString Pin
toxcct25-Jan-04 21:36
toxcct25-Jan-04 21:36 
GeneralControl Parent in CDocument Pin
sschilachi25-Jan-04 3:48
sschilachi25-Jan-04 3:48 

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.