能不能这麽用?cvLoadImage((const char*)m_hDIB,CV_LOAD_IMAGE_GRAYSCALE);
http://blog.csdn.net/lee1054908698/article/details/12911619