Add .ico to ppc file eg .dll

taximania

Well-Known Member
Licensed User
I've been playing with Erel's SetFileAssociation program.

My intention was to write an app that associates a .filetype, eg, .dll with a .ico image that shows in the PPC explorer.

As usual, no luck yet.
I can create an association with a program, but not just the icon file.

Any ideas :sign0137:

This is work in progress. it's New Years Day and i'm :sign0155:
 

Erel

Administrator
Staff member
Licensed User
I'm not sure that you can use a .ico file.
Usually it is an icon embedded in an executable or a dll file.
B4X:
reg.SetStringValue("sbpfile\DefaultIcon","Default","\Program Files\Basic4ppc\Basic4ppc.exe,-32512")
The last number is the position of the icon in the file.
You could find it with a program like: http://angusj.com/resourcehacker/
 

taximania

Well-Known Member
Licensed User
Sorted it :)

Create your .ico graphic.
Add it to a blank Basic4ppc program.
Compile the program for device, place the .exe on your device,
and use the .ico from within the blank .exe

Now when i'm using the standard device explorer,
I can see what the filetype is.

I will post an example in 'Show Your Creations' later.
 
Top