试试看LPUNKNOWN pCaller = NULL;
URLDownloadToFile(pCaller,szURL,szFileName 

解决方案 »

  1.   

    SyntaxHRESULT URLDownloadToFile(          LPUNKNOWN pCaller,
        LPCTSTR szURL,
        LPCTSTR szFileName,
        DWORD dwReserved,
        LPBINDSTATUSCALLBACK lpfnCB
    );
    ParameterspCaller
    Pointer to the controlling IUnknown interface of the calling Microsoft ActiveX component (if the caller is an ActiveX component). If the calling application is not an ActiveX component, this value can be set to NULL. Otherwise, the caller is a Component Object Model (COM) object that is contained in another component (such as an ActiveX control within the context of an HTML page). This parameter represents the outermost IUnknown of the calling component. The function attempts the download within the context of the ActiveX client framework and allows the caller's container to receive callbacks on the progress of the download. 
      

  2.   

    反正是一个IUnknown*指针, 传入脚本引擎接口试一下
    Activex里面可以获取到调用这个控件的脚本引擎接口指针的