#define   BLOCK_SIZE         500
        #define   BLOCK_HOLD_SIZE    501
        BYTE  cBlockBuf[BLOCK_HOLD_SIZE];
---------------------------------------------------------;

        FieldPtr pField = m_pTestResultSet->Fields->GetItem(_T("tTestReport"));


        int nFileLen = file.GetLength();
        int nBlock = nFileLen / BLOCK_SIZE;
        int nLeft  = nFileLen % BLOCK_SIZE;
        int i, j;
        for( i=0; i<nBlock; i++)
        {
            file.Read(cBlockBuf, BLOCK_SIZE);
            for(j=0; j<BLOCK_SIZE; j++)
            {
                if ( cBlockBuf[j]==0 )
                {
                    cBlockBuf[j] = 1;
                }
            }
        cBlockBuf[BLOCK_SIZE] = '\0';
        
        varDataBlock.SetString((char *)cBlockBuf);
        pField->AppendChunk(varDataBlock)
        
        }
        file.Read(cBlockBuf, nLeft);

        for(j=0; j<nLeft; j++)
        {
            if ( cBlockBuf[j]==0 )
            {
                cBlockBuf[j] = 1;
            }
        }
        cBlockBuf[nLeft] = '\0';
        
        varDataBlock.SetString((char *)cBlockBuf);
        pField->AppendChunk(varDataBlock);
        
        m_pTestResultSet->Update();
[color=FF0000][size=2]
请教高手写下代码注释,如有空闲求高手写出这个程序的解密程序,小弟感谢了,[/size][/color]