文件类型系统文件关联 [英] File Types System File Association

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

问题描述

我一直在尝试将.txt文件扩展名应用到我的应用程序.因为这是我的新手,所以我不得不选择GUI方式,因此我已经在文件系统中的项目中添加了它,甚至我也添加了我文件类型中的扩展名,扩展名为.txt和我自己的图标.甚至构建成功.现在的问题是,当我双击任何文本文件时,它将在我的应用程序中加载.它只是空白.但是它确实通过我在应用程序中创建的打开文件来打开文本文件.所以问题是我在这里想念的是什么,我怎么只双击打开文本文件?


在此先谢谢您

I have been trying to apply a .txt file extension to my application .since I''m a new to this i had to choose the GUI way so i have already added in my project in File System and Even i have added my extension in File Types as extension .txt and my own icon . even build was successful. now the problem is when i double click to any text file it won load in my application .it just goes blank .but it did open text file via open file which i made in my application . so the question is what did i miss here , how do i open text file just double clicking it ?


thank you in advance

推荐答案

自定义文件扩展名控制 [^ ]

您不应该使用txt扩展名,因为它已经被注册,并且被许多应用程序通常用于文本文件.用户希望文本文件在记事本等应用程序中打开,而不是在其他某些应用程序中打开.
Custom file extension control[^]

You should not use the txt extension since it is already registered and commonly used for text files by many applications. Users expect a text file to open in an application such as notepad, not in some other app.



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

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