Click here to Skip to main content
15,913,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Scrolling text Pin
Ashman23-Feb-01 10:24
Ashman23-Feb-01 10:24 
QuestionHow to use STL in WTL Programing? Pin
kimy22-Feb-01 18:06
kimy22-Feb-01 18:06 
AnswerRe: How to use STL in WTL Programing? Pin
Anders Molin23-Feb-01 3:04
professionalAnders Molin23-Feb-01 3:04 
AnswerRe: How to use STL in WTL Programing? Pin
Michael Dunn23-Feb-01 15:57
sitebuilderMichael Dunn23-Feb-01 15:57 
GeneralRe: How to use STL in WTL Programing? Pin
kimy25-Feb-01 14:15
kimy25-Feb-01 14:15 
GeneralAn interest problem for which I am desperate for answer Pin
Wolfram Steinke22-Feb-01 17:34
Wolfram Steinke22-Feb-01 17:34 
Generalwhat's this construction in detail???-_-;; Pin
hahyojin22-Feb-01 15:06
hahyojin22-Feb-01 15:06 
GeneralGet matching application to document type Pin
22-Feb-01 12:19
suss22-Feb-01 12:19 
Hello all!

Does anyone know how I can determine (on Win NT4, Visual C++) the application (executable file name including the path) that is registered to a document?

I just need the application name, I do not want to spawn a process with ShellExecute. The way I'm doing it right now is calling the 'GetClassFile(FileName, &ClsID)' method and then searching for the matching registry entry.

This works fine for most file types but it fails for example for '.txt'-files. 'GetClassFile(...)' returns 'MK_E_INVALIDEXTENSION' in this case although '.txt' is registered... Confused | :confused:

I'm sure the solution must be a very obvious one, can someone give me a hint on this?

Chris

GeneralRe: Get matching application to document type Pin
Tim Deveaux22-Feb-01 12:48
Tim Deveaux22-Feb-01 12:48 
GeneralDebug Release Optimization Pin
22-Feb-01 10:43
suss22-Feb-01 10:43 
GeneralDebug Release Optimization Pin
22-Feb-01 10:43
suss22-Feb-01 10:43 
GeneralRe: Debug Release Optimization Pin
Erik Funkenbusch22-Feb-01 12:22
Erik Funkenbusch22-Feb-01 12:22 
GeneralMemory Mapping Pin
22-Feb-01 6:57
suss22-Feb-01 6:57 
GeneralRe: Memory Mapping Pin
l a u r e n22-Feb-01 9:22
l a u r e n22-Feb-01 9:22 
GeneralMixing DEBUG and RELEASE DLLs. Pin
Chris Meech22-Feb-01 5:55
Chris Meech22-Feb-01 5:55 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
l a u r e n22-Feb-01 6:13
l a u r e n22-Feb-01 6:13 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
Chris Meech22-Feb-01 6:33
Chris Meech22-Feb-01 6:33 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
Erik Funkenbusch22-Feb-01 12:29
Erik Funkenbusch22-Feb-01 12:29 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
Chris Meech23-Feb-01 7:01
Chris Meech23-Feb-01 7:01 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
26-Feb-01 8:14
suss26-Feb-01 8:14 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
Erik Funkenbusch26-Feb-01 12:31
Erik Funkenbusch26-Feb-01 12:31 
GeneralRe: Mixing DEBUG and RELEASE DLLs. Pin
27-Feb-01 5:47
suss27-Feb-01 5:47 
GeneralSearching a custom Database Pin
jerry0davis22-Feb-01 5:48
jerry0davis22-Feb-01 5:48 
GeneralRe: Searching a custom Database Pin
l a u r e n22-Feb-01 5:57
l a u r e n22-Feb-01 5:57 
Generaldelete and delete [] what is the difference Pin
22-Feb-01 5:35
suss22-Feb-01 5:35 

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.