从序列化文件启动应用程序 [英] Launch application from a serialized file

查看:57
本文介绍了从序列化文件启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要开发一个将数据存储到序列化流的应用程序。

一个很好的例子是微软的话。在您创建Word文档并将其保存在磁盘上的位置 - 一旦您单击保存的文档,Microsoft Word将自动打开并显示该文件的内容。



因此,我还需要能够通过单击我使用相同的应用程序通过序列化创建的文件来启动我的应用程序。



任何建议启动我或网络非常欢迎链接到有用的资源。谢谢

Hi everybody,
I am in need of developing an application which stores data to serialized streams.
A good example is Microsoft word. Where you create a word document and save it on disk-once you click on the saved document, Microsoft word will automatically open and display the contents of the file.

Therefore, i also need to be able to launch my application by just clicking on the file i created through serialization using the same application.

Any suggestions to start me off or web link to useful resources is highly welcomed. Thank you

推荐答案

谷歌是你的朋友:它被称为将应用程序与文件扩展名相关联,有几种方法可以做到这一点。通常情况下,您会在安装过程中执行此操作,以便在您的应用程序准备好在系统上运行时进行设置,但也有办法在您的应用程序中执行此操作。

Google将我的应用与文件类型相关联 [ ^ ]应该给你很多例子。
Google is your friend: It's called "Associating an application with a file extension" and there are a couple of ways to do it. Normally, you'd do it as part of your installation process so that it's all set up when your app is prepped to run on the system, but there are ways to do that in your application as well.
Google "associate my app with a file type"[^] should give you plenty of examples.


这篇关于从序列化文件启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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