I would like to get the value of argument and its output from function as per below.
Please advise me to get it done since I left this function only for my development and looking forward to hearing from good news from someone.
Code:
LPCWSTR fileName = _T("C\\Test.bmp");
unsigned char *Content, Mem;
HBITMAP bitmap;
bitmap = LoadBMPFromFile(fileName, Content);
Mem = Content;
HBITMAP Dlg::LoadBMPFromFile(LPCWSTR fileName, unsigned char *Content)
{
HBITMAP hBitmap = (HBITMAP)LoadImage(NULL, fileName,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE);
BITMAP m_sbmpBitmap;
CBitmap m_bmpBitmap;
datasize = m_bmpBitmap.GetBitmapBits(datasize * sizeof(COLORREF), lpClrData);
for(int i = 0;i<m_sbmpBitmap.bmHeight;i++)
{
for(int k = 0;k<m_sbmpBitmap.bmWidth;k++)
{
char *Mem = temp.put(k,i, 3);
}
}
Content = (unsigned char*)Mem;
return hBitmap;
}
Comment