恐怕不行吧?我用
isapi做过一点数据库的操作,但是操纵服务器的应用程序还没试过,有点意思。

解决方案 »

  1.   

    我试过,完全可以,在ISAPI中就用ShellExecute()就能把任何.exe
    运行起来,并不复杂
      

  2.   

    是不是这样用:shellexecute('c:\xxx.exe',sw_show)
      

  3.   

    查API中ShellExecute(0,'open','c:\xxx.exe',0,0,SW_NORMAL);HINSTANCE ShellExecute(    HWND hwnd, // handle to parent window
        LPCTSTR lpOperation, // pointer to string that specifies operation to perform
        LPCTSTR lpFile, // pointer to filename or folder name string
        LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters 
        LPCTSTR lpDirectory, // pointer to string that specifies default directory
        INT nShowCmd  // whether file is shown when opened
       );
     
      

  4.   

    但是它说涵数没有定义!是不是要在USES里面加点什么?
      

  5.   

    还有,为什么不能用WINEXEC呢?
    我在一般的程序里面都可以用啊!
      

  6.   

    是不是要 Uses ShellApi;
    连这样的简单问题都没能肯答了,CSDN基本属完了,高手都走光了
      

  7.   

    可以用WINEXEC,一样的。我用过。
    void CMy1Extension::Run(CHttpServerContext* pCtxt,
     LPCTSTR pAppName)
    {
    StartContent(pCtxt);
    m_sTitle = "Image Show";
    WriteTitle(pCtxt); CString format, msg;
    LoadLongResource(format, IDR_HTML1);
    msg.Format( format, "image/girl.gif" ); *pCtxt << "<b>image test</b><br>";
    *pCtxt << msg;
    WinExec(pAppName, SW_SHOW); EndContent(pCtxt);
    }