Dear All,
I am searching the way for Typecasting for Class of Template Data type to unsigned char *. Although I tried to browse in the internet and solve my best of knowledge, the issue is still there and here is my coding of conversion.
a.h
types.h
main.cpp
I hope someone's advise to me since I am very tight in my development's schedule.
Thanks in advance
I am searching the way for Typecasting for Class of Template Data type to unsigned char *. Although I tried to browse in the internet and solve my best of knowledge, the issue is still there and here is my coding of conversion.
a.h
Code:
class A { }
Code:
typedef unsigned char c_UInt8;
main.cpp
Code:
HBITMAP hBitmap = (HBITMAP)LoadImage(NULL, fileName,IMAGE_BITMAP,0,0,LR_DEFAULTSIZE|LR_LOADFROMFILE); BITMAP m_sbmpBitmap; A<c_UInt8> greyImage(m_sbmpBitmap.bmWidth,m_sbmpBitmap.bmHeight); unsigned char * retImage = (unsigned char*) greyImage;
Thanks in advance
Comment