Thanks for you help.Could you explain it more particular?
Now my code is like this:
-------------------------------------------
FILE *fp;
fp=fopen("C:\\h.bmp","w+r");
fseek(fp, 55, SEEK_SET);
fwrite((unsigned char*)gStuff->inData, 1, gStuff->bigDocumentData-> wholeSize32.v * gStuff->bigDocumentData->wholeSize32.h * gStuff->planes, fp);
fclose(fp);
-------------------------------------------
Why the image data saved is disordered?
Thanks.