首页 > 代码库 > Processes
Processes
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 works14 */15 using namespace VCF;16 17 18 19 /**20 This will demonstrate how to create a process21 */22 void example1()23 {24 //create a process object25 Process p1;26 27 //create a process28 29 #if defined(VCF_WIN)30 p1.createProcess( "XCOPY", "/?" );31 #elif defined(VCF_POSIX)32 p1.createProcess( "ls", "--help" );33 #endif34 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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。