标签:style class blog code tar ext
//调用neroAacEnc.exe STARTUPINFO si={0}; PROCESS_INFORMATION pi={0};//隐藏窗口 si.cb=sizeof(si); si.dwFlags= STARTF_USESHOWWINDOW| STARTF_USESTDHANDLES; si.wShowWindow=SW_HIDE; char *file_exe="neroAacEnc.exe"; if(access(file_exe,0)!=0) { printf("can‘t find AAC.exe\n"); } char cmd[65535]={0}; string PathName("E:\\Project\\ExtractAudio\\ExtractAudio\\"); AudioName=PathName + AudioName; AACName=PathName + AACName; sprintf(cmd,"%s -cbr %d -lc -if \"%s\" -of \"%s\"","neroAacEnc.exe",bitrate,AudioName.c_str(),AACName.c_str()); if(!CreateProcess(NULL,CA2W(cmd),NULL,NULL,FALSE,NULL,NULL,NULL,&si,&pi)) printf("transformer is wrong\n");
标签:style class blog code tar ext
原文地址:http://www.cnblogs.com/welen/p/3795937.html