I comppile this code, error occurs.
uint IMGWIDTH = 100;
uint BitmapByteCountPerLine;
BitmapByteCountPerLine = (IMGWIDTH * 3 + 3) & (~3);<=== Compile Error
Cannot implicitly convert type 'long' to 'uint'. An explicit conversion exists (are you missing a cast?)
this code was came from my C++ code and no error occurred in VC++ 6.0 compiler.
DWORD IMGWIDTH = 100;
DWORD BitmapByteCountPerLine;
BitmapByteCountPerLine = (IMGWIDTH * 3 + 3) & (~3);
uint IMGWIDTH = 100;
uint BitmapByteCountPerLine;
BitmapByteCountPerLine = (IMGWIDTH * 3 + 3) & (~3);<=== Compile Error
Cannot implicitly convert type 'long' to 'uint'. An explicit conversion exists (are you missing a cast?)
this code was came from my C++ code and no error occurred in VC++ 6.0 compiler.
DWORD IMGWIDTH = 100;
DWORD BitmapByteCountPerLine;
BitmapByteCountPerLine = (IMGWIDTH * 3 + 3) & (~3);