正在创建新的文件类型... [英] Creating a new file type...

查看:85
本文介绍了正在创建新的文件类型...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,
从Windows RTF文本框中保存文件时,我想为我的应用程序创建一个其他文件无法读取的单独文件类型.我目前在Visual Studio 2008中工作.请帮助...

Hi friends,
While saving a file in Windows Environment from my rich text box, I want to create a separate file type for my application which other applications cannot read. I am currently working in Visual Studio 2008. Please help...

推荐答案

为应用程序创建带有扩展名的二进制文件.它不一定会阻止其他应用程序打开它,但是只有您的应用程序才能读取该格式.
Create a binary file with an extension for your application. It won''t necessarily prevent other applications form opening it but only your app will be able to read the format.


唯一的方法是使用加密.

如果您在不加密的情况下更改文件扩展名,则用户最初将无法打开该文件.
但是,一旦他将文件关联到Windows中的程序,他就可以随时使用该程序打开文件.
The only way to do this would be to use encryption.

If you change the file extension without encryption, the user initially wont be able to open the file.
However, once he associates the file to a program in Windows, he can open the file using that program any time.


这篇关于正在创建新的文件类型...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆