This example adds the dll.ico to all the .dll's on your Device.
1. Unzip dll.zip to the Desktop.
2. Open dll.sbp and add dll.ico as the icon, if it isn't by default.
3. Compile using 'Optimized' for Device.
4. Copy the compiled dll.exe and AnyFileAssociation.sbp to your Device.
5. Run AnyFileAssociation.sbp on your Device.
xxxfile: is a unique name to you for the icon association.
e.g. dllTaxi
.xxx: is the 3 letter extension of the associated file
e.g. .dll
Icon: Browse to 'dll.exe' (on this occassion), on your device.
You need 3rd party software to find the offset for other .exe or .dll's
Offset: 32512 is the default value in a Basic4ppc.sbp file.
Associate program: If you check this box, when you double click a file on your Device of type .dll (in this example), It will start dll.exe.
This merely shows the msgbox() in dll.exe, or what ever lines of code you put in dll.sbp before compiling it. (Step 2 above)
Save Changes: Does exactly that.
WARNING:
If you associate the program (checkbox1.checked=true) then you have to use a registry editor to remove the association.
Many thanks to Erel. (And his code, library's etc)
I've spent about 6 hours on this project and 6 more on Google.
@Anybody:
How can I add all the .ico files I have created into 1 VB.NET .dll
This would do away with the need to have an sbp.exe file for each icon.
And less google time for me looking for answers.