unsigned char* pImgBuf = NULL;
pImgBuf = (unsigned char*)malloc(LINE_PER_BLOCK * nBytesPerLine);if (0 != fseek(pFile,-(lImgLinePerBlock + lImgLineOfLastBlock) * nBytesPerLine,SEEK_CUR))
{....}if ((unsigned int)(nBytesPerLine * lImgLinePerBlock) != fwrite(pImgBuf,1,nBytesPerLine * lImgLinePerBlock,pFile))
{....}
谢谢那位高人帮我转成VB代码,谢谢了。
pImgBuf = (unsigned char*)malloc(LINE_PER_BLOCK * nBytesPerLine);if (0 != fseek(pFile,-(lImgLinePerBlock + lImgLineOfLastBlock) * nBytesPerLine,SEEK_CUR))
{....}if ((unsigned int)(nBytesPerLine * lImgLinePerBlock) != fwrite(pImgBuf,1,nBytesPerLine * lImgLinePerBlock,pFile))
{....}
谢谢那位高人帮我转成VB代码,谢谢了。
所以,要想逐句翻译是不可能的,只能通过程序的目的来写一段相同功能的代码.