OutTmpFiles = new AnsiString[FHttpThreadCount];FSuccesss=new bool[FHttpThreadCount];HttpThreads = new THttpGetThread *[FHttpThreadCount];HttpThreads:=HttpGetThread.Create(^FHttpThreadCount);CopyFile(OutTmpFiles[0].c_str(),FOutFileName.c_str(),false);Reads:=FileRead(hS,(void *)Buf,BufSize);
FileWrite(hD,(void *)Buf,Reads);
Reads:=FileRead(hS,(void *)Buf,BufSize);

解决方案 »

  1.   

    帮你UP。你的代码好象不全是CB吧。
      

  2.   

    OutTmpFiles := IntToStr(FHttpThreadCount);FSuccesss := FHttpThreadCount > 0;HttpThreads := new THttpGetThread.Create(???[FHttpThreadCount]);HttpThreads := HttpGetThread.Create(^FHttpThreadCount);CopyFile(OutTmpFiles[0].c_str(),FOutFileName.c_str(),false);Reads := FileRead(hS, Buf^, BufSize);
    FileWrite(hD,Buf^,Reads);
    Reads := FileRead(hS,Buf^, BufSize);
      

  3.   

    OutTmpFiles = new AnsiString[FHttpThreadCount];
    FSuccesss=new bool[FHttpThreadCount];
    这两句都是分配一个数组
    OutTmpFiles:array of string;
    FSuccess:array of boolean;
    setlength(OutTmpFiles,FHttpThreadCount);
    setLength(FSuccesss,FHttpThreadCount);
      

  4.   

    HTTPGetThread = class(TThread)===========================================
    THttpGetThread *HttpThread=CreateHttpThread();
       THttpGetThread *HttpThread=CreateHttpThread();
     HttpThreads:= HttpGetThread.create(nil);
    ==========================================
    就剩这几句不明白。