|
-
December 4th, 2010, 02:56 AM
#1
Open/Display File
Hi,
I want to ask how to open/display a file like we double click to this file in windows. Not like read/open file such as fread or ifstream...
Thank you.
-
December 4th, 2010, 03:05 AM
#2
Re: Open/Display File
Have a look at MSDN topic CWinApp::EnableShellOpen
Victor Nijegorodov
-
December 4th, 2010, 03:05 AM
#3
Re: Open/Display File
 Originally Posted by Coaxecva
Hi,
I want to ask how to open/display a file like we double click to this file in windows. Not like read/open file such as fread or ifstream...
Thank you.
Think about ShellExecute()
-
December 4th, 2010, 03:09 AM
#4
Re: Open/Display File
 Originally Posted by Msm
Think about ShellExecute()
Correct!
but first you must register file type...
Victor Nijegorodov
-
December 4th, 2010, 03:16 AM
#5
Re: Open/Display File
 Originally Posted by VictorN
Correct!
but first you must register file type...
yes sir..
-
December 4th, 2010, 03:29 AM
#6
-
December 4th, 2010, 03:49 AM
#7
Re: Open/Display File
@..Victor Sir..
Can you explain me why did you suggest to register file type before ShellExecute().
We can easily use ShellExecute() to run any program or others.
-
December 4th, 2010, 04:19 AM
#8
Re: Open/Display File
Victor Nijegorodov
-
December 4th, 2010, 01:21 PM
#9
Re: Open/Display File
Okay you are suggesting the registration for unknown file types. I got it. And yes thanks for those links..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|