BitmapBytesPerLine example for C++ 5.0 and later
ILEADRasterIO *RasterIO = NULL;
CString strOut;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL,
IID_ILEADRasterIO, (void**)&RasterIO);
RasterIO->Load(m_RasterView.GetRaster(),"c:\\1.bmp",0,0,1);
strOut.Format("Bytes Per Line = %d", m_RasterView.GetRaster().GetBitmapBytesPerLine( ) );
RasterIO->Release();