加载后,在我的应用程序中播放相关文件 [英] Play associated file in my application once it is loaded
本文介绍了加载后,在我的应用程序中播放相关文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
我开发了一个应用程序,就像媒体播放器一样播放特定扩展名为.vox的音频文件。我已将我的应用程序与此文件扩展名关联以打开。我的应用程序打开后,我需要一个帮助来开始播放所选文件。
Dear All,
i have developed an application which is like media player to play audio files for a particular extension that is .vox. i have associated my application to this file extension to open with. i need a help to start playing the selected file once my application is opened.
推荐答案
从
改变Main()函数
Change the Main() function from
[STAThread]
static int Main()
to
to
[STAThread]
static int Main(string[] args)
并检查是否存在参数。假设第一个参数是要播放的文件的路径。
and check for the presence of arguments. Assume the first argument to be the path to the file to be played.
这篇关于加载后,在我的应用程序中播放相关文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文