Handling shell command line
-
Hello, I would like that users be able to launch my application from the Shell "Open with" menu. Can somebody explain how to achieve that? Thanks
-
Hello, I would like that users be able to launch my application from the Shell "Open with" menu. Can somebody explain how to achieve that? Thanks
-
Hello, Thank you for replying. I followed your link. But I've already call EnableShellOpen in the CWinApp::InitInstance. And my application is listed under "Open with" menu. When I open a file with the "Open with" menu, the shell actually launch my app. However I don't know how to do further processing like retrieving the file being launched and open it. Can you help me doing that?
-
Hello, Thank you for replying. I followed your link. But I've already call EnableShellOpen in the CWinApp::InitInstance. And my application is listed under "Open with" menu. When I open a file with the "Open with" menu, the shell actually launch my app. However I don't know how to do further processing like retrieving the file being launched and open it. Can you help me doing that?
-
Hello, Thank you for replying. I followed your link. But I've already call EnableShellOpen in the CWinApp::InitInstance. And my application is listed under "Open with" menu. When I open a file with the "Open with" menu, the shell actually launch my app. However I don't know how to do further processing like retrieving the file being launched and open it. Can you help me doing that?
-
Hello, Thank you for replying. I followed your link. But I've already call EnableShellOpen in the CWinApp::InitInstance. And my application is listed under "Open with" menu. When I open a file with the "Open with" menu, the shell actually launch my app. However I don't know how to do further processing like retrieving the file being launched and open it. Can you help me doing that?
Allad wrote:
However I don't know how to do further processing like retrieving the file being launched and open it.
I'm assuming you have either an SDI or MDI application. Yes? If clicking on a particular file opened your application, then the file is already opened and its name can be obtained from the document's
GetPathName()
method.
"Take only what you need and leave the land as you found it." - Native American Proverb
-
Allad wrote:
However I don't know how to do further processing like retrieving the file being launched and open it.
I'm assuming you have either an SDI or MDI application. Yes? If clicking on a particular file opened your application, then the file is already opened and its name can be obtained from the document's
GetPathName()
method.
"Take only what you need and leave the land as you found it." - Native American Proverb