码迷,mamicode.com
首页 > 其他好文 > 详细

Processes

时间:2014-12-18 16:51:57      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:style   blog   ar   io   color   os   sp   on   div   

 1 //Processes.cpp
 2 
 3 /*
 4 Copyright 2000-2004 The VCF Project.
 5 Please see License.txt in the top level directory
 6 where you installed the VCF.
 7 */
 8 
 9 
10 #include "vcf/FoundationKit/FoundationKit.h"
11 
12 /**
13 A brief example demonstrating how the Process class works
14 */
15 using namespace VCF;
16 
17 
18 
19 /**
20 This will demonstrate how to create a process
21 */
22 void example1()
23 {
24     //create a process object
25     Process p1;
26 
27     //create a process
28 
29 #if defined(VCF_WIN)
30     p1.createProcess( "XCOPY", "/?" );
31 #elif defined(VCF_POSIX)
32     p1.createProcess( "ls", "--help" );
33 #endif
34 
35 }
36 
37 
38 int main( int argc, char** argv ){
39 
40     FoundationKit::init( argc, argv );
41 
42     example1();
43 
44 
45     FoundationKit::terminate();
46     return 0;
47 }
48 
49 
50 /**
51 $Id: Processes.cpp 2755 2006-06-11 15:35:27Z kdmix $
52 */

 

Processes

标签:style   blog   ar   io   color   os   sp   on   div   

原文地址:http://www.cnblogs.com/elitiwin/p/4171762.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!