- 博客(9)
- 资源 (10)
- 收藏
- 关注
原创 mkfifo命令不好使时创建命名管道
#include#include#include#includeint main(void){ unlink( "zieckey_fifo" ); mkfifo( "zieckey_fifo", 0777 ); return 0;}在mkfifo不好
2011-08-26 11:00:02
940
原创 qt多线程的简单例子
int main() { MyThread a; MyThread b; a.start(); b.start(); a.wait(); b.wait(); }//单独写到一个文件里面, cla
2011-08-19 20:14:27
594
原创 mplayer slave 的简单使用
第一段代码使用popen调用mpayer程序#include #include int main(){ FILE * pp = NULL; char data[1024]; if ((pp = popen("mplayer -slave -input file
2011-08-19 15:26:30
3093
原创 简单例子
#includeint main(){FILE * po = NULL;if ((pp = popen(“mplayer –wid xxxx –slave –input file=/tmp/cmd”, “r”)) != NULL){ while(
2011-08-19 14:03:06
405
转载 Gtk中调用Mplayer
Gtk中调用Mplayer一、Mplayer1. 什么是MplayerMplayer是Linux下的多媒体播放器,它使用简单,对常见的视频、音乐格式都支持得不错。2. 为什么使用MplayerLinux下的多媒体播放器主要用xi
2011-08-18 16:09:48
1088
原创 qt调用mplayer
#ifndef MOVIEPLAY_H#define MOVIEPLAY_H#include #include #include #include #include #include #include #include #include #include
2011-08-18 10:02:32
1823
原创 ARM 9 MPlayer 移植总结
一个项目要求上音频、视频播放。项目环境为linux2.6 + s3c2440,google了一下,应该是mplayer无疑了。 网上很多好人把mplayer的移植过程分享出来了,比较详细。自己交叉编译的过程中遇到的问题基本上都能搜索到解决办法。
2011-08-18 09:38:45
1393
原创 VC判断文件是否存在
使用CFile和CFileStatus判断文件是否存在没有什么好说的直接上代码int isExist(CString filepath /* = CString */){ if (filepath.IsEmpty()) { return 0; }
2011-07-03 16:54:00
384
转载 /dev/null 2>&1 详解
这条命令的意思是将标准输出和错误输出全部重定向到/dev/null中,也就是将产生的所有信息丢弃.下面我就为大家来说一下, command > file 2>file 与command > file 2>&1 有什么不同的地方. 首先~command > file 2>file 的意思是将命令所产生的标准输出信息,和错误的输出信息送到file 中.command
2009-08-30 15:32:00
285
Tomcat和IIS集成
2011-10-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人