如何在程序中打开.mp3, .exe, .chm文件? ---介绍一下ShellExecute的用途
来源:互联网 发布:android商城数据接口 编辑:程序博客网 时间:2024/05/01 18:41
下面, 我们看看ShellExecute的重要用途, 用它来打开.mp3, .exe, .chm, 当然啦, 在当前工程中必须有这些文件。
#include <windows.h>int main(){ShellExecute(0, 0, "beauty_voice.mp3", 0, 0, 0);return 0;}上面程序会唱歌。
#include <windows.h>int main(){ShellExecute(0, 0, "test.exe", 0, 0, 0);return 0;}上面程序会启动test.exe
#include <windows.h>int main(){ShellExecute(0, 0, "help.chm", 0, 0, 0);return 0;}上面程序会打开help.chm
而且我发现,system函数也可以打开test.exe和help.chm, 但打不开.mp3. 所以有局限性。 而且, 用system会弹出一个黑框框, 不好。
0 0
- 如何在程序中打开.mp3, .exe, .chm文件? ---介绍一下ShellExecute的用途
- 如何在网页中打开.exe文件
- 如何解决chm类型的文件在Windows操作系统中无法打开
- 在ubuntu下,如何打开CHM文件?
- 在ubuntu下,如何打开CHM文件?
- 如何打开CHM文件
- ShellExecute打开我的电脑,打开文件或者程序
- WinAPI: ShellExecute - 打开外部程序或文件
- WinAPI: ShellExecute - 打开外部程序或文件
- WinAPI: ShellExecute - 打开外部程序或文件
- WinAPI: ShellExecute - 打开外部程序或文件
- ShellExecute 调用记事本程序打开txt文件
- WinAPI: ShellExecute - 打开外部程序或文件
- WinAPI: ShellExecute - 打开外部程序或文件
- WinAPI: ShellExecute - 打开外部程序或文件
- WinAPI: ShellExecute - 打开外部程序或文件
- WinAPI: ShellExecute - 打开外部程序或文件
- WinAPI: ShellExecute - 打开外部程序或文件
- 宽带拨号程序
- Compiling Wireshark using MS VS Express 2012 on Windows 7
- 神奇的C#内部类作用解读
- 【J2SE快速进阶】——Java内存分析
- android 绘图与自定义控件
- 如何在程序中打开.mp3, .exe, .chm文件? ---介绍一下ShellExecute的用途
- 第四章知识导图
- 12306用户泄漏 我们该做什么?如何查询自己的帐号是否安全?
- count_one_bit
- Android学习 AsyncTask与Handler
- IOS Table中Cell的重用reuse机制分析
- http 协议与错误代码
- 白话经典算法系列之七 堆与堆排序
- WMware 安装系统出现NTLDR is missing 的解决办法