Click here to Skip to main content
15,909,498 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIs it .Net or Vc++ 6.0? Pin
Anonymous1-Jul-03 6:52
Anonymous1-Jul-03 6:52 
AnswerRe: Is it .Net or Vc++ 6.0? Pin
basementman1-Jul-03 7:42
basementman1-Jul-03 7:42 
GeneralRetrieving file name and path from Office applications Pin
Member 3600821-Jul-03 6:09
Member 3600821-Jul-03 6:09 
Generalgetting file property, help help help Pin
pnpfriend1-Jul-03 5:51
pnpfriend1-Jul-03 5:51 
GeneralRe: getting file property, help help help Pin
David Crow1-Jul-03 6:05
David Crow1-Jul-03 6:05 
GeneralRe: getting file property, help help help Pin
Peter Weyzen1-Jul-03 9:43
Peter Weyzen1-Jul-03 9:43 
GeneralRe: getting file property, help help help Pin
pnpfriend1-Jul-03 10:52
pnpfriend1-Jul-03 10:52 
GeneralRe: getting file property, help help help Pin
Peter Weyzen1-Jul-03 11:35
Peter Weyzen1-Jul-03 11:35 
The code that you have works for programs that employ the OLE2 DOCFILE format. DOCFILE is a filesystem within a file.... It's a container system that stores virtual-file and virtual-directories within a single file.

The DOCFILE also has the ability to store a "summary" table -- represented by IPropertyStorage.

This kinda thing only works for DOCFILES. Other files are more difficult.

You CAN look into the registry (HKEY_CLASSES_ROOT), to find out what program is associated with your file extension. But if you don't have a file extension, then you're in trouble.

Without a file extension, I expect that you'd have to open the file to manually detect the format. (a pretty limited solution).

As a bit of unrelated trivia -- the Mac handles file associations without using filename extensions. They do all of this by saving useful data into the "resource fork" of the file. All files in the mac file system have a resource fork (I think)....

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>

GeneralRe: getting file property, help help help Pin
David Crow12-Sep-03 9:36
David Crow12-Sep-03 9:36 
Generalcreating an array of structures Pin
johnstonsk1-Jul-03 5:44
johnstonsk1-Jul-03 5:44 
GeneralRe: creating an array of structures Pin
Manfred Staiger1-Jul-03 5:59
Manfred Staiger1-Jul-03 5:59 
GeneralRe: creating an array of structures Pin
David Crow1-Jul-03 6:08
David Crow1-Jul-03 6:08 
GeneralRe: creating an array of structures Pin
johnstonsk1-Jul-03 6:30
johnstonsk1-Jul-03 6:30 
GeneralRe: creating an array of structures Pin
David Crow1-Jul-03 6:56
David Crow1-Jul-03 6:56 
GeneralRe: creating an array of structures Pin
David Crow1-Jul-03 10:57
David Crow1-Jul-03 10:57 
GeneralDatabase Easy Question Pin
Scozturk1-Jul-03 5:35
professionalScozturk1-Jul-03 5:35 
GeneralRe: Database Easy Question Pin
David Crow1-Jul-03 6:09
David Crow1-Jul-03 6:09 
GeneralRe: Database Easy Question Pin
Toni781-Jul-03 18:58
Toni781-Jul-03 18:58 
GeneralModeless Dialogs Pin
Jay Hova1-Jul-03 5:35
Jay Hova1-Jul-03 5:35 
GeneralRe: Modeless Dialogs Pin
valikac1-Jul-03 5:39
valikac1-Jul-03 5:39 
GeneralRe: Modeless Dialogs Pin
David Crow1-Jul-03 6:23
David Crow1-Jul-03 6:23 
GeneralRe: Modeless Dialogs Pin
Jay Hova1-Jul-03 6:37
Jay Hova1-Jul-03 6:37 
GeneralProblem with COMIP.H Pin
ThaisFurlan1-Jul-03 5:01
ThaisFurlan1-Jul-03 5:01 
Generalaudio settings in xp - help Pin
alonk1-Jul-03 4:29
alonk1-Jul-03 4:29 
Generalprinting multiple pages spanning horizontally Pin
Member 4509901-Jul-03 4:28
Member 4509901-Jul-03 4:28 

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.