CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #1
    Join Date
    Nov 2010
    Posts
    139

    how can i customise my own file extension format?

    i have a program i created in c++. its a logon application that i want to use to protect private files.
    i would like to know how to create my own file extentions so that only my program can open it.
    for example if i double click the file, my application opens and the user logs in, if the correct credentials
    are entered they are allowed access to the file (it opens so they can read it).

    at the moment my program opens up a word document when the user enters his correct credentials.
    i am using the system() function for this. however this file when clicked from the start menu opens up using word.

    basically i'm not sure what is best or whats right. is it best to just change the file extension so only my app can open it?
    or create and save a document in a custom file format so that only my program can open it and other applications cannot read them?
    if the latter, how can i do this, what are the steps?

    plus i have looked up on some info online and it says that i have to register my file. does this relate to just
    changing the file extension or creating a file format or both? How do i register my own file extension
    Last edited by katy_price; December 19th, 2010 at 01:41 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured