用DELPHI做一个编译器系统
调用TC使
EXE 和LIB 文件的代码(参数)怎么样写?如由.c文件生成OBJ的代码是
TCC -C *.c 
s=TCC -C *.c 
winexec(pchar(s),sw_hide)

解决方案 »

  1.   

    http://school.enet.com.cn/eschool/inforcenter/article.jsp?articleid=20040303290905◇[DELPHI]执行程序外文件 
    WINEXEC//调用可执行文件 
    winexec('command.com /c copy *.* c:\',SW_Normal); 
    winexec('start abc.txt'); 
    ShellExecute或ShellExecuteEx//启动文件关联程序 
    function executefile(const filename,params,defaultDir:string;showCmd:integer):THandle; 
    ExecuteFile('C:\abc\a.txt','x.abc','c:\abc\',0); 
    ExecuteFile('http://tingweb.yeah.net','','',0); 
    ExecuteFile('mailto:[email protected]','','',0);