for c++builder,用于vc应该把消息框改一下就可以了
void contour(void){
char ln[100];
int make;
char str[100]="";
char *tip="不能执行:";
sprintf(ln,"%s\%s",getcurrentdir(),"watson.exe");
char path[100];
sprintf(path,"%s",getcurrentdir());
chdir(path);
//showmessage(ln);
startupinfo startinfo;
process_information procinfo;
strcat(str,tip);
strcat(str, ln);
getstartupinfo(&startinfo);
startinfo.dwflags =startf_useshowwindow;
startinfo.wshowwindow=sw_hid...[ 查看全文 ]