Forum Discussion
Altera_Forum
Honored Contributor
16 years agonios sw development: invalid bmp file produced
Hi, I have encountered a problem while writing to a bitmap file. The code works in the cc compiler but fails to work properly in Nios II IDE. The bitmap file can be written, but the fi...
Altera_Forum
Honored Contributor
16 years agoSome update:
I added a code to print out the sizeof() values and these are the results: cc: BITMAPHEADER = 14 BITMAPINFO = 44 Nios II IDE: BITMAPHEADER = 16 BITMAPINFO = 44 Note the difference in the values of sizeof(BITMAPHEADER). Does anyone know of a way around this?