Getting icon of executable file

ddahan

Member
Licensed User
Longtime User
Hi,
I'm new to Basic4PPC, I'll appreciate your advice.
I'm trying to write a launcher application, I am facing two issues:
- Getting a list of installed programs in the device
- Getting the icon associated to an (executable) file

thanks,
David.
 

ExcludeReality

Active Member
Licensed User
The installed programs are most likely stored in \Windows\Start-menu\Programs.
Use the FileSearch keyword and an arraylist to list all files in that folder.
Then use the Shell keyword to execute on of the files.

See this thread: Bit of help

However, I have no clue how to get the icon if even possible.

I've attached small example.
 

Attachments

  • example.sbp
    598 bytes · Views: 210

ddahan

Member
Licensed User
Longtime User
Please, I'll appreciate a direction on resolving this issue.
Andrew presented a desktop solution, I guess that getting icons of a selected file in the device is also doable.

thanks,
David.
 

agraham

Expert
Licensed User
Longtime User
I guess that getting icons of a selected file in the device is also doable.
Not without invoking calls to native dlls which is not possible from within Basic4ppc. The Compact Framework on devices is a limited subset of that available on the desktop and the required functionality just isn't there.
 
Top