Click here to Skip to main content
15,902,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetModuleFileName instance and registering app Pin
igor196029-Sep-03 12:58
igor196029-Sep-03 12:58 
GeneralRe: GetModuleFileName instance and registering app Pin
Michael Dunn29-Sep-03 16:26
sitebuilderMichael Dunn29-Sep-03 16:26 
GeneralTaskbar window button Pin
blade29-Sep-03 9:01
blade29-Sep-03 9:01 
GeneralExecuting an EXE from memory Pin
Larry Antram29-Sep-03 8:54
Larry Antram29-Sep-03 8:54 
GeneralRe: Executing an EXE from memory Pin
David Crow29-Sep-03 11:14
David Crow29-Sep-03 11:14 
GeneralRe: Executing an EXE from memory Pin
Larry Antram29-Sep-03 12:23
Larry Antram29-Sep-03 12:23 
GeneralRe: Executing an EXE from memory Pin
Michael Dunn29-Sep-03 16:29
sitebuilderMichael Dunn29-Sep-03 16:29 
QuestionHow to create an "Open With" list? Pin
ralfoide29-Sep-03 8:45
ralfoide29-Sep-03 8:45 
Hi!

I need to be able to launch a viewer for a given file from my application (Win32/MFC/C++). Ideally I'd like to present the user with choices similar to the "Open With..." feature of the explorer shell.

I tried SHGetFileInfo but it keeps returning 0 for the flag SHGFI_TYPENAME (failure).

So I assume there's two part in my quest:
1- Find the type (mime type?) a given extension (I don't necessarily have the file created yet -- i.e. I'd like the user to be able to choose before creating the file)
2- Find a list of suitable applications (path, "user friendly" name) that can open that mime type.

I seems like I could just go and fish the info from the registry, but would that work on any windows version?

Regards
R/
AnswerRe: How to create an "Open With" list? Pin
Amit Dey29-Sep-03 13:33
Amit Dey29-Sep-03 13:33 
GeneralEasy question about formatting a string Pin
NewHSKid29-Sep-03 8:18
NewHSKid29-Sep-03 8:18 
GeneralRe: Easy question about formatting a string Pin
Ravi Bhavnani29-Sep-03 8:35
professionalRavi Bhavnani29-Sep-03 8:35 
GeneralRe: Easy question about formatting a string Pin
David Crow29-Sep-03 8:38
David Crow29-Sep-03 8:38 
GeneralRe: Easy question about formatting a string Pin
WREY29-Sep-03 11:49
WREY29-Sep-03 11:49 
QuestionValid Pointer ?? Pin
Shah Shehpori29-Sep-03 8:10
sussShah Shehpori29-Sep-03 8:10 
AnswerRe: Valid Pointer ?? Pin
Ravi Bhavnani29-Sep-03 8:39
professionalRavi Bhavnani29-Sep-03 8:39 
AnswerRe: Valid Pointer ?? Pin
David Crow29-Sep-03 8:53
David Crow29-Sep-03 8:53 
AnswerRe: Valid Pointer ?? Pin
igor196029-Sep-03 13:06
igor196029-Sep-03 13:06 
AnswerRe: Valid Pointer ?? Pin
Michael Dunn29-Sep-03 16:33
sitebuilderMichael Dunn29-Sep-03 16:33 
GeneralVisual Assebmler Pin
Stefak29-Sep-03 7:17
Stefak29-Sep-03 7:17 
GeneralDirectShow with MFC Pin
juryu29-Sep-03 7:09
juryu29-Sep-03 7:09 
GeneralRe: DirectShow with MFC Pin
Ravi Bhavnani29-Sep-03 8:42
professionalRavi Bhavnani29-Sep-03 8:42 
GeneralJPEG2000 Pin
gicio29-Sep-03 7:00
gicio29-Sep-03 7:00 
QuestionInternet Explorer Context Menu? Pin
MKlucher29-Sep-03 6:27
MKlucher29-Sep-03 6:27 
AnswerRe: Internet Explorer Context Menu? Pin
Neville Franks29-Sep-03 11:00
Neville Franks29-Sep-03 11:00 
AnswerRe: Internet Explorer Context Menu? Pin
J. Dunlap29-Sep-03 11:49
J. Dunlap29-Sep-03 11:49 

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.