Click here to Skip to main content
15,908,775 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: I need help to make a program Pin
CPallini11-May-09 21:29
mveCPallini11-May-09 21:29 
Questionide channel communication Pin
Mr.S.Wolf.11-May-09 15:59
Mr.S.Wolf.11-May-09 15:59 
QuestionErase text in transparent window Pin
gcorrea11-May-09 13:10
gcorrea11-May-09 13:10 
AnswerRe: Erase text in transparent window Pin
bulg11-May-09 14:07
bulg11-May-09 14:07 
GeneralRe: Erase text in transparent window Pin
Taran911-May-09 18:42
Taran911-May-09 18:42 
GeneralRe: Erase text in transparent window Pin
gcorrea20-May-09 7:27
gcorrea20-May-09 7:27 
QuestionDisplaying an image from a Firewire Camera in MFC Pin
cheekitwong11-May-09 12:11
cheekitwong11-May-09 12:11 
AnswerRe: Displaying an image from a Firewire Camera in MFC Pin
Jonathan Davies11-May-09 12:45
Jonathan Davies11-May-09 12:45 
You can to convert the frames received from the camera to bitmap classes or BITMAPINFO structs. for example, something like:

void CCameraView2::ProcessFrame(UINT8 *pData,UINT32,UINT8 Redraw)
{
    UINT32 BytesPerDstPix;

    // Copy frame to our bitmap
    if(m_pBitmapInfo)
    {
	BytesPerDstPix=3;
	switch(m_ColorMode)
	{
	  case CM_Y8    : memcpy(m_pImage,pData,(UINT32)m_XSize*(UINT32)m_YSize);
					  BytesPerDstPix=1;
					  break;

	  case CM_RAW8  : ConvertRawY8(m_XSize,m_YSize,pData,m_pImage,m_BayerPattern);
					  break;
  
          case CM_RGB8  : ConvertRGB(m_XSize,m_YSize,pData,m_pImage);
						  break;
        ...

QuestionRe: Displaying an image from a Firewire Camera in MFC Pin
cheekitwong12-May-09 11:03
cheekitwong12-May-09 11:03 
AnswerRe: Displaying an image from a Firewire Camera in MFC Pin
Jonathan Davies12-May-09 23:21
Jonathan Davies12-May-09 23:21 
AnswerRe: Displaying an image from a Firewire Camera in MFC Pin
Jonathan Davies13-May-09 1:49
Jonathan Davies13-May-09 1:49 
Questionwrite code (vc++) in file.txt Pin
anassamar11-May-09 9:25
anassamar11-May-09 9:25 
AnswerRe: write code (vc++) in file.txt Pin
David Crow11-May-09 9:30
David Crow11-May-09 9:30 
GeneralRe: write code (vc++) in file.txt Pin
CPallini11-May-09 11:26
mveCPallini11-May-09 11:26 
GeneralRe: write code (vc++) in file.txt Pin
Cedric Moonen11-May-09 20:43
Cedric Moonen11-May-09 20:43 
AnswerRe: write code (vc++) in file.txt Pin
bulg11-May-09 12:02
bulg11-May-09 12:02 
AnswerRe: write code (vc++) in file.txt Pin
Cedric Moonen11-May-09 20:48
Cedric Moonen11-May-09 20:48 
AnswerRe: write code (vc++) in file.txt Pin
huangnachuan11-May-09 23:43
huangnachuan11-May-09 23:43 
Questionchanging text color and tooltip of texts in a CListBox control Pin
AprNgp11-May-09 9:11
AprNgp11-May-09 9:11 
AnswerRe: changing text color and tooltip of texts in a CListBox control Pin
David Crow11-May-09 9:16
David Crow11-May-09 9:16 
QuestionKeeping row selected Pin
FISH78611-May-09 9:06
FISH78611-May-09 9:06 
AnswerRe: Keeping row selected Pin
David Crow11-May-09 9:21
David Crow11-May-09 9:21 
GeneralRe: Keeping row selected Pin
FISH78611-May-09 9:26
FISH78611-May-09 9:26 
GeneralRe: Keeping row selected Pin
David Crow11-May-09 9:28
David Crow11-May-09 9:28 
GeneralRe: Keeping row selected Pin
FISH78611-May-09 9:37
FISH78611-May-09 9:37 

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.