听说用什么函数能达到这种效果,那位愿意告诉我啊!

解决方案 »

  1.   

    给你一个例子:
    #include <stdio.h>
    #include <dos.h>
    void main(void)
    {
      printf("Hello\n");
      system("c:\\windows\\regedit.exe");
      printf("End\n");
    }
      

  2.   

    WinExe
    ShellExecute
    CreateProcess
      

  3.   

    CreateExecute(NULL,"dir /w/s",...)
    CreateExecute("C:\\windows\\notepad.exe",NULL,...)CreateProcess(...
      

  4.   

    for example:
    ShellExecute(NULL, NULL, "http://www.cctv.com.cn", NULL, NULL, SW_SHOWNORMAL);
      

  5.   

    ShellExecute(NULL, NULL, "notepad.exe", NULL, NULL, SW_SHOWNORMAL);