Basic4ppc - Windows Mobile Development  

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

Code Samples & Tips Share your recent discoveries and ideas with other users.


.sbp file association in the Device


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2007, 02:26 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,198
Default .sbp file association in the Device

Hi,

After a few attemps i managed to associate the b4ppc generated files (.sbp) to its original creator (b4ppc) and respective icon...

Using a regestry editor (or even the regestry library if anyone is willing to create an aplet to do this), Like PHM Regedit, go to the following Key:

HKEY_CLASSES_ROOT

add Key:

.sbp (including the dot)

Inside the .sbp ad the values:

Name - value
Content Type - basic4ppc
Default - sbpfile

Go back one level and add the Key:

sbpfile

Inside this key create two more:

DefaultIcon
Shell

Inside DefaultIcon add the value

Default - \Program Files\Basic4ppc\Basic4ppc.exe,0 (this is the path were b4ppc is installed and may difer from yours...the last zero is needed to indicate the icon)
Go back to the shell key and add insid it the folllowing keys:

Open\Command

Inside command add the value:

Default - "\Program Files\Basic4ppc\Basic4ppc.exe" "%1" ( dont forget the commas, and again this is the b4ppc install path)
EDIT: though this is true, its doesn't seem to work with B4ppc files, it just launches the B4ppc editor in a blank project upon tapping a sbp file
ALthoug I'm not sure if its necessary, I did a soft-reset after the regestry alteration....

As Usual, messing with the regestry is something to do with extra care, any "bad" key can transform your device in a brick untill hard-reset...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

Last edited by Cableguy : 05-11-2007 at 05:18 PM.
Reply With Quote
  #2 (permalink)  
Old 05-15-2007, 06:31 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 214
Arrow

I tried this with PHM RegEdit, what type of 'values', DWord, binary, string etc should I be adding.

The options available in PHM don't match what your telling me to add ?
__________________
Avoiding lawyers
For a full year now

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

http://www.taximania.net
Reply With Quote
  #3 (permalink)  
Old 05-15-2007, 06:36 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,198
Default

I used PHM, all values are REG_SZ wich are Dword or String, and are also the default type...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #4 (permalink)  
Old 05-15-2007, 07:26 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 214
Default

Thankyou for your quick reply

I will try again tomorrow
I'm very limited at present using this laptop.

I've still not sorted my laptop out yet.
Waiting for a new DVD drive
__________________
Avoiding lawyers
For a full year now

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

http://www.taximania.net
Reply With Quote
  #5 (permalink)  
Old 05-16-2007, 04:15 PM
Knows the basics
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 94
Default sbp associate

I can double click on a sbp file in file explorer or resco explorer and it brings up basic4ppc. wihout going thru the registry as you say.
Reply With Quote
  #6 (permalink)  
Old 05-16-2007, 05:48 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,198
Default

Hi, I'm using WM6, and it always reported me,that no program was associated with the filetype.
That's what brought me Here....
What SO are you using?
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #7 (permalink)  
Old 05-17-2007, 02:40 PM
Knows the basics
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 94
Default associate

I'm using wm5 and will probably never change to wm6
Reply With Quote
  #8 (permalink)  
Old 05-17-2007, 11:25 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,198
Default

Ok,
So I downgraded to WM5 and installed RescoExplorer....And can't get it to load on tap...B4ppcStarts always an empty project...Maybe in V5 this will be adressed...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #9 (permalink)  
Old 05-18-2007, 02:12 PM
Knows the basics
 
Join Date: Apr 2007
Location: Kindred,ND
Posts: 94
Default

It would be nice as I can't remember the file I tapped when I get in B4ppc
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
FTP file download fails on device willisgt Questions & Help Needed 3 01-31-2008 11:45 AM
Add file association to Basic4ppc source code files (on the device) Erel Code Samples & Tips 8 01-16-2008 07:01 AM
DEVICE, Icon and program association. taximania Share Your Creations 2 01-05-2008 07:20 PM
How co compile to Device *.exe file haiphanngoc Questions & Help Needed 4 09-07-2007 09:36 AM


All times are GMT. The time now is 06:06 PM.


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