using new extensions

Discussion in 'QnA (read only)' started by deepak.krishnan, Apr 10, 2006.

Thread Status:
Not open for further replies.
  1. deepak.krishnan

    deepak.krishnan New Member

    Joined:
    Jan 11, 2005
    Messages:
    423
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Palakkad/Bangalore
    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
     
  2. Apollo

    Apollo "Technologic"

    Joined:
    Apr 5, 2005
    Messages:
    452
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Mumbai, Maharashtra, India, India
    I don't think I understand your question altogether well.

    "This program", "That format." Confuzzling. : lol :
     
  3. kato

    kato Karthiksn

    Joined:
    Sep 11, 2005
    Messages:
    422
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    Actually wat do u mean. You are talking about some extension but an extension to wat be a bit clear
     
  4. QwertyManiac

    QwertyManiac Commander in Chief

    Joined:
    Jul 17, 2005
    Messages:
    6,656
    Likes Received:
    10
    Trophy Points:
    0
    Actually he means that he wants to create his own file extension which only he/his s/w can create or edit (perhaps)
     
  5. amitgg

    amitgg New Member

    Joined:
    Jan 24, 2006
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  6. OP
    OP
    deepak.krishnan

    deepak.krishnan New Member

    Joined:
    Jan 11, 2005
    Messages:
    423
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Palakkad/Bangalore
    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.
     
  7. OP
    OP
    deepak.krishnan

    deepak.krishnan New Member

    Joined:
    Jan 11, 2005
    Messages:
    423
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Palakkad/Bangalore
    I did not get wut you meant by registering with windows.Can you explain a bit more please?
     
  8. QwertyManiac

    QwertyManiac Commander in Chief

    Joined:
    Jul 17, 2005
    Messages:
    6,656
    Likes Received:
    10
    Trophy Points:
    0
    In tools->folder options-> file types, one can register/add a special extension and choose an app to open it by default
     
  9. sakumar79

    sakumar79 Active Member

    Joined:
    Nov 28, 2004
    Messages:
    2,441
    Likes Received:
    9
    Trophy Points:
    38
    Location:
    Madurai
    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_system/directoriesandfiles/article.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
     
  10. OP
    OP
    deepak.krishnan

    deepak.krishnan New Member

    Joined:
    Jan 11, 2005
    Messages:
    423
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Palakkad/Bangalore
    Thanks frinds.I got it.Thanks a lot
     
  11. Cool Buddy

    Cool Buddy Active Member

    Joined:
    Mar 31, 2006
    Messages:
    1,590
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Milky way
    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.
     
  12. Kniwor

    Kniwor Learner

    Joined:
    Sep 14, 2005
    Messages:
    1,949
    Likes Received:
    6
    Trophy Points:
    0
    Location:
    Chicago
    EGG- ZAKTLY

    i dont understand how others could not figure out waht he is asking ... it was a clear question...
     
Thread Status:
Not open for further replies.

Share This Page