Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > General > Chit Chat
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Chit Chat The place for open discussions.


File associacion


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-08-2008, 07:32 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
Awards Showcase
Forum Contributer 
Total Awards: 1
Default File associacion

Hi guys...
I was aiming for a litle surprise, but I have a doubt that "forces" me to pop the package up...
I'm about 75% done of an INI file creator for the device...
I thought to myself:
" it's pretty easy writing an INI file, so lets try it in the device...hum...with what app should I do it?"
Then I realized that there is no easy way, either to create an INI file,or rename a TXT file into INI...
So I decided to get myself going in creating a very simple but yet effective INI creator...
NOW my problem is not directly related to the coding, but more on how things work...
I was planning to include some file association for my app, so that any INI file tapped would open the App automatically and loaded...
Also planning to do a custom icon for the INI files, so that they would be more easely tracked in a fileexplorer in the device...

How can I achieve theese two things?

I know i have to teak the regestry, and even know were and what to create, the only doubt about that is how to enable the tap - open event...
Do I need to define some args to my app?
__________________
Paulo Gomes
Porto, Portugal

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

DLL Version Listing
Reply With Quote
  #2 (permalink)  
Old 06-08-2008, 08:25 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

You can use code similar to that one to add file association in the registry: Add file association to Basic4ppc source code files (on the device)

Your program will receive the tapped file name as the first argument - args(0).
You can check in App_Start:
Code:
If args.Count > 0 then
 ... 'Load tapped file
End If
Reply With Quote
  #3 (permalink)  
Old 06-08-2008, 08:33 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Thanks Erel, so I Do have to work with args...
great....Hope to have it ful working by week end...
__________________
Paulo Gomes
Porto, Portugal

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

DLL Version Listing
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 07:34 PM.


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