Click here to Skip to main content
15,898,884 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Control Parent in CDocument Pin
Michael Dunn25-Jan-04 8:56
sitebuilderMichael Dunn25-Jan-04 8:56 
GeneralInternet Explorer Scripting Pin
upake25-Jan-04 0:23
upake25-Jan-04 0:23 
GeneralRe: Internet Explorer Scripting Pin
Amit Dey25-Jan-04 5:16
Amit Dey25-Jan-04 5:16 
GeneralRe: Internet Explorer Scripting Pin
Jörgen Sigvardsson25-Jan-04 6:52
Jörgen Sigvardsson25-Jan-04 6:52 
Generalpackaging VC++ application Pin
satadru24-Jan-04 22:00
satadru24-Jan-04 22:00 
GeneralRe: packaging VC++ application Pin
Johnny ²25-Jan-04 5:14
Johnny ²25-Jan-04 5:14 
GeneralRe: packaging VC++ application Pin
User 665825-Jan-04 5:35
User 665825-Jan-04 5:35 
GeneralRe: packaging VC++ application Pin
Mukkie25-Jan-04 7:50
Mukkie25-Jan-04 7:50 

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.