Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Add .ico to ppc file eg .dll


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-01-2008, 09:26 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 238
Awards Showcase
Beta Tester 
Total Awards: 1
Default Add .ico to ppc file eg .dll

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

This is work in progress. it's New Years Day and i'm
__________________
Endemol
Waste of space

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net
Reply With Quote
  #2 (permalink)  
Old 01-02-2008, 06:41 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

I'm not sure that you can use a .ico file.
Usually it is an icon embedded in an executable or a dll file.
Code:
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/
Reply With Quote
  #3 (permalink)  
Old 01-02-2008, 12:06 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 238
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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.
__________________
Endemol
Waste of space

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSV file generates strange start in file sunnyboyj Questions & Help Needed 9 12-21-2007 09:38 PM


All times are GMT. The time now is 04:50 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0