Click here to Skip to main content
16,010,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCopy files to A:\ Pin
Gerry8-May-01 3:02
Gerry8-May-01 3:02 
GeneralRe: Copy files to A:\ Pin
Tomasz Sowinski8-May-01 3:06
Tomasz Sowinski8-May-01 3:06 
GeneralDirectShow help needed! Pin
8-May-01 2:27
suss8-May-01 2:27 
Generaldrawing a circle Pin
imran8-May-01 2:09
imran8-May-01 2:09 
GeneralRe: drawing a circle Pin
Chris Losinger8-May-01 2:28
professionalChris Losinger8-May-01 2:28 
GeneralRe: drawing a circle Pin
Christian Graus8-May-01 13:00
protectorChristian Graus8-May-01 13:00 
AnswerRe: drawing a circle Pin
mohini19893-Mar-09 21:10
mohini19893-Mar-09 21:10 
QuestionHow to display captured data? Pin
8-May-01 1:23
suss8-May-01 1:23 
Hello guys,

I'm new to MFC. I made hardware image grabber board and get the digitized image data from it. The one pixel data of it is organized as 4 byte(DUMMY(MSB) + R + G + B(LSB)).
I already made device driver and application code for this grabber board running on Windows 98 and it works fine. I used this routine for display image.

......
CClientDC dc(this);
CBitmap bitmap;
CDC dcMemory;

dcMemory.CreateCompatibleDC(&dc);
bitmap.CreateCompatibleBitmap(&dc, m_Width, m_Height);
memcpy(AppImageBuff, pDmaImage, m_Width*m_Height*m_BytesPerPixel);
bitmap.SetBitmapBits(m_Width*m_Height*m_BytesPerPixel,AppImageBuff);
dcMemory.SelectObject(bitmap);
dc.BitBlt(40, 60, m_Width, m_Height, &dcMemory, 0, 0, SRCCOPY);
...........

AppImageBuff contains image data, array of DWORD.

Now the problem is I have to do the same task in Windows CE where I can't use API function "SetBitmapBits()". How can I display image data without using SetBitmapBits?
Please help.

Morii

AnswerRe: How to display captured data? Pin
Christian Graus8-May-01 1:40
protectorChristian Graus8-May-01 1:40 
GeneralRe: How to Enable/Disable menu items in SDI projects? Pin
Christian Graus8-May-01 0:00
protectorChristian Graus8-May-01 0:00 
GeneralThanks... but you are not right. I am sorry... Pin
8-May-01 0:19
suss8-May-01 0:19 
GeneralRe: Thanks... but you are not right. I am sorry... Pin
Christian Graus8-May-01 0:37
protectorChristian Graus8-May-01 0:37 
QuestionHas anyone sample code for managing the WH_CALLWNDPROC macro?? Pin
7-May-01 22:50
suss7-May-01 22:50 
GeneralConverting RTF <--> HTML Pin
7-May-01 22:41
suss7-May-01 22:41 
GeneralLoading exe's Pin
7-May-01 21:59
suss7-May-01 21:59 
GeneralRe: Loading exe's Pin
l a u r e n8-May-01 0:58
l a u r e n8-May-01 0:58 
GeneralRe: Loading exe's Pin
8-May-01 1:43
suss8-May-01 1:43 
GeneralEventLog Pin
sankar7-May-01 21:49
sankar7-May-01 21:49 
GeneralSplitterWnd and ActiveXControl Pin
Ricky Berghold7-May-01 20:43
Ricky Berghold7-May-01 20:43 
Generaldynamic picture control Pin
7-May-01 19:51
suss7-May-01 19:51 
GeneralRe: dynamic picture control Pin
Christian Graus7-May-01 23:18
protectorChristian Graus7-May-01 23:18 
GeneralProject for everybody who want to participate Pin
BLaZe7-May-01 16:32
BLaZe7-May-01 16:32 
QuestionDoes anyone know how to do Audio Fading with Direct show? Pin
Bart-Man7-May-01 11:07
Bart-Man7-May-01 11:07 
QuestionLPDISPATCH problem ? Pin
latunos7-May-01 7:23
latunos7-May-01 7:23 
GeneralUnicode Windows ME Pin
Andy Shaw7-May-01 6:41
Andy Shaw7-May-01 6:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.