src= iplCreateImageHeader( 1, 0, IPL_DEPTH_8U, "GRAY",
"GRAY", IPL_DATA_ORDER_PIXEL, IPL_ORIGIN_TL,
IPL_ALIGN_DWORD, width, height, NULL, NULL, NULL,
NULL);
iplAllocateImage( src, 0, 0 );
......
static HWND hImgWnd;
CWnd* pImgWnd = NULL;
pImgWnd = GetDlgItem(IDC_STATIC_IMG);
hImgWnd = pImgWnd->GetSafeHwnd();
char *pImg = src->imageData;
imgPlot ((GUIHNDL)hImgWnd, pImg, 0, 0, src->width, src->height,0, 0, IMGPLOT_MONO_8);
That sample program works well, but it is a windows program, not a MFC VC++ program. In my program I use MFC as above, but it can not work. I debug my program, I think datas are in the buffer. I think even there are no datas in buffer, there should be some displays on the static control, but nothing displayed, just every contro
l on the dialog including button,etc, is lost for a while then re-appear again.
Looking forward to your reply!!!!