Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-04-2006, 10:35 PM   #1 (permalink)
In The Zone
 
deepak.krishnan's Avatar
 
Join Date: Jan 2005
Location: Palakkad/Bangalore
Posts: 423
Default using new extensions


Hello friends,
I would like to know how to make use of an extension made by myself to save a file say a word doc typed in my own program.Please tell me how to relate this program to always save a file in tat format and also open only files in that format.
--------------------
Deepak Krishnan
__________________
.dk
deepak.krishnan is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 10-04-2006, 10:41 PM   #2 (permalink)
"Technologic"
 
Apollo's Avatar
 
Join Date: Apr 2005
Location: 3rd rock from the sun.
Posts: 422
Default

I don't think I understand your question altogether well.

"This program", "That format." Confuzzling. : lol :
__________________
One great use of words is to hide our thoughts.
------------
Apollo is offline  
Old 10-04-2006, 10:56 PM   #3 (permalink)
Karthiksn
 
kato's Avatar
 
Join Date: Sep 2005
Location: Chennai
Posts: 422
Default

Actually wat do u mean. You are talking about some extension but an extension to wat be a bit clear
__________________
"Walking the Path of Heaven, The Ruler of All."
kato is offline  
Old 10-04-2006, 10:59 PM   #4 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default

Actually he means that he wants to create his own file extension which only he/his s/w can create or edit (perhaps)
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 10-04-2006, 11:01 PM   #5 (permalink)
Broken In
 
Join Date: Jan 2006
Posts: 105
Default

First of all, think about the format of file format in which you want to make ur documents.

e.g. open an .rtf or .doc file in notepad. you will see some special characters. This is formatting which can only be understand by 'word'.
so u have to create a program which can store and read files in ur particular format.

Now, u want to register ur file extension with windows, so that users can open those file from explorer itself by double clicking on icon (isn't it?).

I forgot this how to do it with programming, but manually you can do it from tools->folder options-> file types in explorer.
amitgg is offline  
Old 10-04-2006, 11:02 PM   #6 (permalink)
In The Zone
 
deepak.krishnan's Avatar
 
Join Date: Jan 2005
Location: Palakkad/Bangalore
Posts: 423
Default

well do u know tat one can make his own extensions in windows??? If so I want 2 know how I can make such an extension which I made to be opened only with my program.
eg. In case of a word doc. made in a text editor, on saving the program(text editor) must save the text file in the extension assigned to it.Also it must b able to open the files of the extension assigned to it only.

Now I hope its clear for you.
__________________
.dk
deepak.krishnan is offline  
Old 10-04-2006, 11:04 PM   #7 (permalink)
In The Zone
 
deepak.krishnan's Avatar
 
Join Date: Jan 2005
Location: Palakkad/Bangalore
Posts: 423
Default

Quote:
Originally Posted by amitgg
First of all, think about the format of file format in which you want to make ur documents.

e.g. open an .rtf or .doc file in notepad. you will see some special characters. This is formatting which can only be understand by 'word'.
so u have to create a program which can store and read files in ur particular format.

Now, u want to register ur file extension with windows, so that users can open those file from explorer itself by double clicking on icon (isn't it?).

I forgot this how to do it with programming, but manually you can do it from tools->folder options-> file types in explorer.
I did not get wut you meant by registering with windows.Can you explain a bit more please?
__________________
.dk
deepak.krishnan is offline  
Old 10-04-2006, 11:11 PM   #8 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default

In tools->folder options-> file types, one can register/add a special extension and choose an app to open it by default
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 11-04-2006, 05:21 AM   #9 (permalink)
Human Spambot
 
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
Default

I think what you are trying to say is that you want to have the installation for your program register file extension to be opened by your program... For example, if you create a software named "My Word Processor" and store files created in a .mwp format, you want the installation program of "My Word Processor" to register .mwp to be opened by it...

In that case, it will depend on the language that you are using to code the program... For VB5/6, take a look at http://www.codeguru.com/vb/gen/vb_sy...cle.php/c4837/ and for VB .NET, check http://www.vbcity.com/forums/topic.asp?tid=72258

For other language, please post which language you are looking at...

Arun
sakumar79 is offline  
Old 11-04-2006, 12:33 PM   #10 (permalink)
In The Zone
 
deepak.krishnan's Avatar
 
Join Date: Jan 2005
Location: Palakkad/Bangalore
Posts: 423
Default

Thanks frinds.I got it.Thanks a lot
__________________
.dk
deepak.krishnan is offline  
Old 11-04-2006, 01:06 PM   #11 (permalink)
Wise Old Owl
 
Cool Buddy's Avatar
 
Join Date: Mar 2006
Location: Milky way
Posts: 1,487
Default

I think When you right-click u get n option "open with". click dis, click browse, locate your executable, click "always use this program....", click OK. This will open files with that ext. with ur program.
Cool Buddy is offline  
Old 11-04-2006, 06:48 PM   #12 (permalink)
Learner
 
Kniwor's Avatar
 
Join Date: Sep 2005
Location: Chicago
Posts: 2,008
Default

Quote:
Originally Posted by Cool Buddy
I think When you right-click u get n option "open with". click dis, click browse, locate your executable, click "always use this program....", click OK. This will open files with that ext. with ur program.
EGG- ZAKTLY

i dont understand how others could not figure out waht he is asking ... it was a clear question...
Kniwor is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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


 
Latest Threads
- by Krow
- by abhidev
- by topgear
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 07:10 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2