Re: EnableShellOpen() for windows mobile
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Tue, 24 Oct 2006 10:12:06 -0700
Your entry in the registry which makes the association does not provide a
command line parameter to the application where the path and name of the
file to be opened will be placed by the shell, probably. You've got some
entry that looks a bit like this:
[HKEY_CLASSES_ROOT\<whatever>\Shell\Open\Command]
@="\"\\<exepath>\\<exename>.exe\" %1"
I think that the %1 might be missing.
Possibility #2 is that, although %1 is there, your application is not
handling it correctly because of spaces in the file path. You might need to
put quotes around the name "%1" or you might need to adjust your program to
use the whole command line as the file name.
Possibility #3 is that your program was already running on the device, if
it's a Pocket PC, this is particularly likely, and so the name of the file
doesn't get sent in the same way. If you're more-specific about what
program, what file, what the device is, what the state of running programs
are, we might be able to help more...
Paul T.
"stopin" <stopin@xxxxxxxxxxxxx> wrote in message
news:%23BnKET49GHA.360@xxxxxxxxxxxxxxxxxxxxxxx
Hi folks,
I am looking for the equivalent of CWinApp::EnableShellOpen( ) on windows
mobile 5.0 platform. I simply want to be able to open a file with my
application when selecting it in the Explorer.
I did the file type association in the install program (using
InstallShield) but when I select a file in the Explorer it only launches
my application and doesn't open the file.
What did I miss?
Thanks in advance,
--
ST
---------------------------
stopin@xxxxxxxxxxxxx
.
- Follow-Ups:
- Re: EnableShellOpen() for windows mobile
- From: stopin
- Re: EnableShellOpen() for windows mobile
- References:
- EnableShellOpen() for windows mobile
- From: stopin
- EnableShellOpen() for windows mobile
- Prev by Date: Re: Callbacks into JScript Code from EVC
- Next by Date: Operate application by 2 usb touchscreens and or mouses
- Previous by thread: EnableShellOpen() for windows mobile
- Next by thread: Re: EnableShellOpen() for windows mobile
- Index(es):
Relevant Pages
|