10-04-2006, 10:35 PM
|
#1 (permalink)
|
|
In The Zone
Join Date: Jan 2005
Location: Palakkad/Bangalore
Posts: 423
|
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
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
10-04-2006, 10:41 PM
|
#2 (permalink)
|
|
"Technologic"
Join Date: Apr 2005
Location: 3rd rock from the sun.
Posts: 422
|
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.
------------
|
|
|
10-04-2006, 10:56 PM
|
#3 (permalink)
|
|
Karthiksn
Join Date: Sep 2005
Location: Chennai
Posts: 422
|
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."
|
|
|
10-04-2006, 10:59 PM
|
#4 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
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
|
|
|
10-04-2006, 11:01 PM
|
#5 (permalink)
|
|
Broken In
Join Date: Jan 2006
Posts: 105
|
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.
|
|
|
10-04-2006, 11:02 PM
|
#6 (permalink)
|
|
In The Zone
Join Date: Jan 2005
Location: Palakkad/Bangalore
Posts: 423
|
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
|
|
|
10-04-2006, 11:04 PM
|
#7 (permalink)
|
|
In The Zone
Join Date: Jan 2005
Location: Palakkad/Bangalore
Posts: 423
|
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
|
|
|
10-04-2006, 11:11 PM
|
#8 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
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
|
|
|
11-04-2006, 05:21 AM
|
#9 (permalink)
|
|
Human Spambot
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
|
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
|
|
|
11-04-2006, 12:33 PM
|
#10 (permalink)
|
|
In The Zone
Join Date: Jan 2005
Location: Palakkad/Bangalore
Posts: 423
|
Thanks frinds.I got it.Thanks a lot
__________________
.dk
|
|
|
11-04-2006, 01:06 PM
|
#11 (permalink)
|
|
Wise Old Owl
Join Date: Mar 2006
Location: Milky way
Posts: 1,487
|
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.
|
|
|
11-04-2006, 06:48 PM
|
#12 (permalink)
|
|
Learner
Join Date: Sep 2005
Location: Chicago
Posts: 2,008
|
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...
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|