G
Guest
Hi
I have a CF.Net small application which is set up with a file association. I
click on a file of a certain type and my program loads fine and the filename
is passed as an argument.
If I click on another file the previous window redisplays and the new file
is not loaded. This is the CF.Net single instance restriction at work.
Is there an accepted way to be able to pass or retrieve the new arguments in
the old instance of the application? I've looked for documentation on this
but I haven't found any.
The ways of "hacking" multiple instances seem to have changed in CE 5.0
since the window class is now #NETCF_AGL_PARK_+pathtoapp and the window title
blank. The old trick of changing the window title doesn't work. If that did
work I'd use a named event + WM_COPYDATA but it seems that route is closed. I
don't really want to have two *.exe's.
Thanks in advance for any suggestions.
I have a CF.Net small application which is set up with a file association. I
click on a file of a certain type and my program loads fine and the filename
is passed as an argument.
If I click on another file the previous window redisplays and the new file
is not loaded. This is the CF.Net single instance restriction at work.
Is there an accepted way to be able to pass or retrieve the new arguments in
the old instance of the application? I've looked for documentation on this
but I haven't found any.
The ways of "hacking" multiple instances seem to have changed in CE 5.0
since the window class is now #NETCF_AGL_PARK_+pathtoapp and the window title
blank. The old trick of changing the window title doesn't work. If that did
work I'd use a named event + WM_COPYDATA but it seems that route is closed. I
don't really want to have two *.exe's.
Thanks in advance for any suggestions.