在普通应用程序中这样写是正确的URLDownLoadToFile(nil, PChar('http://xxx/a.zip), PChar('c:\a.zip'), 0, nil),但如果在编写activex控件中使用此函数时,第一个参数不能用nil,不知那位高手知道该怎么写。
以下是URLDownLoadToFile函数的参数说明:
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. szURL:
  Pointer to a string value containing the URL to be downloaded. Cannot be set to NULL. szFileName:
  Pointer to a string value containing the name of the file to create for bits that come from the download. dwReserved:
  Reserved. Must be set to 0.lpfnCB:
  Pointer to the caller's IBindStatusCallback interface. 其中第一个参数pCaller到底该怎么写?
请高手不吝赐教!