bmfh.bfType != 0x4d42
-
Here bmfh is an object of BITMAPFILEHEADER and I am not sure to achieve the core meaning of the statement below can U explain me ? if(bmfh.bfType != 0x4d42) { throw CDibException(CDibException::enm_file_read_filed, "BMPƒtƒ@ƒCƒ‹‚ł͂ ‚è‚Ü‚¹‚ñ"); }
keyto wrote:
can U explain me ?
can't you follow the posting guidelines ?[^] :zzz: for your question, it just tests if the bfType member of your BITMAPFILEHEADER variable is different of the hexadecimal value 0x4d42. if you can't understand this, maybe you should consider buy a book on C and lear about structs...
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
Here bmfh is an object of BITMAPFILEHEADER and I am not sure to achieve the core meaning of the statement below can U explain me ? if(bmfh.bfType != 0x4d42) { throw CDibException(CDibException::enm_file_read_filed, "BMPƒtƒ@ƒCƒ‹‚ł͂ ‚è‚Ü‚¹‚ñ"); }
-
Here bmfh is an object of BITMAPFILEHEADER and I am not sure to achieve the core meaning of the statement below can U explain me ? if(bmfh.bfType != 0x4d42) { throw CDibException(CDibException::enm_file_read_filed, "BMPƒtƒ@ƒCƒ‹‚ł͂ ‚è‚Ü‚¹‚ñ"); }
A consistence check for the bitmap file. Every bitmap file must contain the characters
'B' (0x42)
and'M' (0x4d)
at the very beginning.If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.