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.


Add file association to Basic4ppc source code files (on the device)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-13-2007, 07:29 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,651
Lightbulb Add file association to Basic4ppc source code files (on the device)

The attached code adds the required registry entries to associate Basic4ppc source code files (.sbp) with Basic4ppc device IDE.
Run SetFileAssocation from the device IDE.
First it checks if Basic4ppc is installed in the default location:
\Program File\Basic4ppc
If it isn't in the default location, the program will stop and will not change the registry.

* Basic4ppc version 5.80 is required for this application.

You can change the source code to associate other file types.
Attached Files
File Type: zip SetFileAssociation.zip (7.2 KB, 121 views)

Last edited by Erel : 01-02-2008 at 05:32 AM. Reason: RegistryDesktop / RegistryDevice files were updated
Reply With Quote
  #2 (permalink)  
Old 11-13-2007, 08:18 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,219
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by Erel View Post
Basic4ppc version 5.80 is required for this application.
That's strange. I don't need to do this. Version 5.50 installation didn't associate *.sbp files with B4PPC (and I never associated them manually) but after installing 5.80 they were associated without me doing anything!
Reply With Quote
  #3 (permalink)  
Old 11-13-2007, 08:22 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,651
Default

On the device? Including the icon?
Reply With Quote
  #4 (permalink)  
Old 11-13-2007, 11:27 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,219
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by Erel View Post
On the device? Including the icon?
Sticks foot in mouth again by reacting without looking carefully! I was referring to the desktop. My device does associate, but not with an icon, so I must have done that myself for the previous versions although I can't remember doing it.
Reply With Quote
  #5 (permalink)  
Old 11-13-2007, 05:35 PM
taximania's Avatar
Senior Member
 
Join Date: May 2007
Posts: 195
Default

Many thanks Erel, a wonderful addition
__________________
Avoiding lawyers

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

http://www.taximania.net
Reply With Quote
  #6 (permalink)  
Old 11-14-2007, 07:01 AM
Junior Member
 
Join Date: Oct 2007
Posts: 18
Default

After adding \SD-MMCard to program path works also on my device - thanks
Reply With Quote
  #7 (permalink)  
Old 01-11-2008, 01:20 PM
Knows the basics
 
Join Date: Aug 2007
Posts: 51
Question Before I try it

Does it work on the desktop too, or is the Desktop DLL only a dummy?

(Would like to use it for my own programme)
Reply With Quote
  #8 (permalink)  
Old 01-11-2008, 02:58 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,219
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by Woinowski View Post
Does it work on the desktop too, or is the Desktop DLL only a dummy?
You should already have the Registry dlls and a help file explaining their use in your libraries folder. Look in the drop down help list.
Reply With Quote
  #9 (permalink)  
Old 01-16-2008, 07:01 AM
Knows the basics
 
Join Date: Aug 2007
Posts: 51
Default Sorry for being lazy...

Quote:
Originally Posted by agraham View Post
You should already have the Registry dlls and a help file explaining their use in your libraries folder. Look in the drop down help list.
That was too easy, thank you :-)
__________________
Unclutter your code -- use an obfuscator
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
Coverting text files with binary file page code functionality kolbe Code Samples & Tips 1 06-21-2008 05:06 PM
Source Code Folders On The Device RandomCoder Basic4ppc Wishlist 13 03-23-2008 01:01 PM
DEVICE, Icon and program association. taximania Share Your Creations 2 01-05-2008 07:20 PM
Include source code from an external file Zemog Questions & Help Needed 2 06-29-2007 08:38 AM
.sbp file association in the Device Cableguy Code Samples & Tips 8 05-18-2007 02:12 PM


All times are GMT. The time now is 05:57 PM.


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