command line
-
If I double click a file into explorer that has the right extension then my app is lounced, and the command line (see __argc and __targv) is like this:
C:\MyApp.exe /dde
What is "/dde
" ?:confused: I was expecting the name of the file.... i.e. something like thisC:\MyApp.exe C:\testfile.txt
Any help? How can I get the filename I need?
Russell
-
If I double click a file into explorer that has the right extension then my app is lounced, and the command line (see __argc and __targv) is like this:
C:\MyApp.exe /dde
What is "/dde
" ?:confused: I was expecting the name of the file.... i.e. something like thisC:\MyApp.exe C:\testfile.txt
Any help? How can I get the filename I need?
Russell
Russell' wrote:
What is "/dde" ?
Dynamic Data Exchange. Check your app's associated extension (and type) in the registry.
Russell' wrote:
Any help? How can I get the filename I need?
Again in the registry, you'll need %1 added to the end of your app's command line.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
Russell' wrote:
What is "/dde" ?
Dynamic Data Exchange. Check your app's associated extension (and type) in the registry.
Russell' wrote:
Any help? How can I get the filename I need?
Again in the registry, you'll need %1 added to the end of your app's command line.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
Yes!!! you are right. Solved...but only temporary, because every time that my app is closed it is restored the same old/bad values into the registry. My application is a MDI MFC program. Some days ago I edited the String into the resource named
**MID**_MYAPP_**TYPE**
. I'm seeing that that string is passed to the constructorCMultiDocTemplate
(intoInitInstance
of the application). That day I was surprised that the files where drawed into explorer with the same icon of the app. I'm thinking that it is there that the app is automatically linked to the extension that I'm using with the program. And every time the program is lounced the same setting are stored. Can it be true? Do you know how can I avoid this problem?
Russell