First of all I'm newbie at c/c++ and probably answer for my question will be very simple for You.
I have to move data from monochrome .bmp (it is scanned 2D shape of element) to bool array (0- white, 1 - black). I found this toppic: Converting 1-bit bmp file to array in C/C++
and I have to do the same thing but this code is i C and I need to do it in C++ so how i have to change it so it would work in C++? (I'm using VSexpress 2010)
edit 1: this bmp is 144x320 pixels
edit 2: i see non of You even look at code, there is problem with pointer error C2440: 'initializing' : cannot convert from 'void *' to 'unsigned char ' 1> Conversion from 'void' to pointer to non-'void' requires an explicit cast it is in line: unsigned char *img = malloc(w * h), *data = malloc(fileSize);