fwrite的第二个参数是做什么的?下面这段代码没有保存成功,是哪里的问题?
typedef struct
{
UINT uImageLen; unsigned char *pbyImage;
}PIC,*PPIC;
FILE* fp = fopen("C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures\\cc.jpg", "wb");
if (fp)
{
PPIC pPic;
fwrite(pPic->pbyImage, 1, pPic->uImageLen, fp);
fclose(fp);
}else
AfxMessageBox("error");