S
Steve B.
Hi,
I've build an application for PPC 2003 with VS 2005 and CF 2.0.
The app have a custom icon and the exe file appears correctly in the file
explorer.
I've also created a new file association ".myapp". I associated my app with
this file extention successfully.
My problem is that I'd like to add a custom icon to my new file extention.
However, I don't know how to manage ressources to give to the system the
correct icon.
Here is the registry snippet I use :
[HKEY_CLASSES_ROOT\.myApp]
@="MyApp"
[HKEY_CLASSES_ROOT\myApp]
@=".myApp document"
[HKEY_CLASSES_ROOT\myApp\Shell]
[HKEY_CLASSES_ROOT\myApp\Shell\Open]
[HKEY_CLASSES_ROOT\myApp\Shell\Open\Command]
@="\"\\Program files\\myApp\\myApp.exe\" \"%1\""
[HKEY_CLASSES_ROOT\myApp\DefaultIcon]
@="\"\\Program files\\myApp\\myApp.exe\",1"
I suppose the "1" should correspond to one of the ressource name in the
assembly, but Visual Studio does not let me rename an icon if the ressource
"1"...
Does anyone know how to reach my goal ?
Thanks,
Steve
I've build an application for PPC 2003 with VS 2005 and CF 2.0.
The app have a custom icon and the exe file appears correctly in the file
explorer.
I've also created a new file association ".myapp". I associated my app with
this file extention successfully.
My problem is that I'd like to add a custom icon to my new file extention.
However, I don't know how to manage ressources to give to the system the
correct icon.
Here is the registry snippet I use :
[HKEY_CLASSES_ROOT\.myApp]
@="MyApp"
[HKEY_CLASSES_ROOT\myApp]
@=".myApp document"
[HKEY_CLASSES_ROOT\myApp\Shell]
[HKEY_CLASSES_ROOT\myApp\Shell\Open]
[HKEY_CLASSES_ROOT\myApp\Shell\Open\Command]
@="\"\\Program files\\myApp\\myApp.exe\" \"%1\""
[HKEY_CLASSES_ROOT\myApp\DefaultIcon]
@="\"\\Program files\\myApp\\myApp.exe\",1"
I suppose the "1" should correspond to one of the ressource name in the
assembly, but Visual Studio does not let me rename an icon if the ressource
"1"...
Does anyone know how to reach my goal ?
Thanks,
Steve