Re: Custom Files?
- From: "Flashster" <xyz@xxxxxxxxx>
- Date: Thu, 1 Dec 2005 23:22:29 -0000
Thanks Jay. I'll use a fairly long file suffix so its less likely to clash
with anything and its only for a limited number of users anyway.
"Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@xxxxxxxxxxxxx> wrote in
message news:%23qs%232lr9FHA.1440@xxxxxxxxxxxxxxxxxxxxxxx
> My take on that article is if you plan on having a Public File type, then
> yes you should register it with the IANA, however if you are planning a
> Private File Type, then I wouldn't worry about it.
>
> Of course not registering it, may mean another app would start using it &
> potentially cause problems for you.
>
> I would also consider my target audience in deciding to register the type
> or
> not.
>
> I would also consider if the documents are going potentially to be placed
> on
> web servers as hyper links...
>
> --
> Hope this helps
> Jay [MVP - Outlook]
> .NET Application Architect, Enthusiast, & Evangelist
> T.S. Bradley - http://www.tsbradley.net
>
>
> "Flashster" <flashster2003@xxxxxxxxxxx> wrote in message
> news:%23MaRYSq9FHA.2036@xxxxxxxxxxxxxxxxxxxxxxx
> | Thanks. I'll look into the XML format I think. But regarding the custom
> file
> | extension: Do I need to apply to the relevent organisations to use a
> custom
> | file extension? In the Microsoft info below, it mentions submitting a
> | request to the IANA for the file type??
> |
> |
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/fileassociations/fa_file_types.asp
> |
> | This is only a small application which is being provided to a small
> number
> | of individuals in a single organisation, so surely I don't have to do
> | this....do I?
> |
> |
> |
> |
> |
> |
> |
> | "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@xxxxxxxxxxxxx> wrote in
> | message news:Op1y%23Dq9FHA.3724@xxxxxxxxxxxxxxxxxxxxxxx
> | > Flashster,
> | > I would define a custom extension for you app. You can use a setup
> packed
> | > to
> | > define the extension when you deploy the app.
> | >
> | > To ensure that the file being read can be understood by my app, rather
> | > then
> | > use plain text, I would use a "structured format", such as XML or
> Binary
> | > Serialization.
> | >
> | > This way when the program attempted to deserialize the document I
> would
> | > get
> | > an exception if the document is not in the expected format...
> | >
> | > As Chris suggests, encrypting the document can also be useful.
> | >
> | > --
> | > Hope this helps
> | > Jay [MVP - Outlook]
> | > .NET Application Architect, Enthusiast, & Evangelist
> | > T.S. Bradley - http://www.tsbradley.net
> | >
> | >
> | > "Flashster" <flashster2003@xxxxxxxxxxx> wrote in message
> | > news:%23LEpgEo9FHA.1028@xxxxxxxxxxxxxxxxxxxxxxx
> | > | My program writes text to a file. Currently the files have a suffix
> of
> | > | '.log' . I want to make sure that the user does not attempt to open
> a
> | > file
> | > | that was not originally created by my program.
> | > |
> | > | I don't really want to write some code to the top of the text file
> that
> | > I'd
> | > | have to filter out each time I read it, so how else would I do it?
> | > |
> | > | Would I perhaps:
> | > | i) create a custom file type with a custom suffix and get the system
> to
> | > | associate that suffix with my program (if so how??)
> | > | ii) set an attribute of the file (e.g. a "creator" attribute, if
> there
> | > is
> | > | one?) to my program name and check it prior to opening the file
> (again,
> | > if
> | > | so how??)
> | > |
> | > |
> | > |
> | >
> | >
> |
> |
>
>
.
- References:
- Custom Files?
- From: Flashster
- Re: Custom Files?
- From: Jay B. Harlow [MVP - Outlook]
- Re: Custom Files?
- From: Flashster
- Re: Custom Files?
- From: Jay B. Harlow [MVP - Outlook]
- Custom Files?
- Prev by Date: Re: Can you override a forms controlbox events?
- Next by Date: Re: Array or ArrayList
- Previous by thread: Re: Custom Files?
- Next by thread: Imports statments
- Index(es):
Relevant Pages
|