1.头文件:#include  <shellapi.h> 2.void __fastcall TForm1::Button1Click(TObject *Sender) 
  { 
    ShellExecute(Application->Handle,"open", 
    "http://www.inprise.com",NULL,NULL,SW_SHOW); 
  } 
也可以使用CreateProcess等

解决方案 »

  1.   

    ShellExecute
    or
    CreateProcess
      

  2.   

    一般使用ShellExecute,需要更完整的处理,可以使用ShellExecuteEx。
    与进程、线程有关时,用CreateProcess。
      

  3.   

    VC++的范例:函数原形为:
    HINSTANCE ShellExecute(
        HWND hwnd, 
        LPCTSTR lpOperation,
        LPCTSTR lpFile, 
        LPCTSTR lpParameters, 
        LPCTSTR lpDirectory,  //启动程序的工作路径,可设可不设,看具体需要
        INT nShowCmd
    ); 
    用ShellExecute(handle, "open", "C:\\Windows\\Calc.exe", NULL, NULL, SW_SHOWNORMAL);
    就可以达到目的。