Registering for file extension in Pocket IE

N

Nathan

This has probably been discussed here, but maybe I am not searchign for
the right keywords

I have a .NET CF 2.0 application. I want to register a file extension
so that the program loads when someone downloads this extension in
Pocket IE.

I found this article:

http://support.microsoft.com/default.aspx/kb/314781

So far that sounds good.

But I probably have to worry about whether my app has already started.
So I'm guesssing the solution(somewhat of a pain, but doable), is to
write another little app, then register that one. The little app will
then check if the app is running. If not, start it with appropriate
command line parameters. If so, send a message to the app (how?) and
have it take appropriate action if it is in a good state.

Hs anyone done this? Did it require an extra app as I have guessed?
What did you use for messaging?

Thanks in advance.

Nathan
 
P

Paul G. Tobey [eMVP]

You haven't said on what device you're talking about, but guessing Pocket
PC, yes, that's the way you'd have to do it, using a secondary application
which will check whether the main application is loaded and, if not, load it
with the filename on the command line or, if so, send it the filename to be
opened via other means.

You might use a point-to-point message queue for sending the name, a custom
windows message registered with RegisterWindowMessage(), or any of a number
of other inter-process communication methods. Daniel Moth has a number of
those reviewed at his site...

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top