> My question is : Is the method that I used correct ?
No.
A BMP file has a lot more information and structure than a simple RAW file (w*h*pixels).
Look up "BMP file format" in any friendly search engine.
> if( Heights != NULL )
You must do this BEFORE trying to fread all over it.