Click here to Skip to main content
16,004,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Monitoring a folder for new files Pin
David Crow28-Sep-04 7:53
David Crow28-Sep-04 7:53 
GeneralRe: Monitoring a folder for new files Pin
BlackDice29-Sep-04 10:47
BlackDice29-Sep-04 10:47 
GeneralRe: Monitoring a folder for new files Pin
David Crow30-Sep-04 2:29
David Crow30-Sep-04 2:29 
GeneralRe: Monitoring a folder for new files Pin
BlackDice30-Sep-04 3:21
BlackDice30-Sep-04 3:21 
GeneralRe: Monitoring a folder for new files Pin
David Crow30-Sep-04 4:13
David Crow30-Sep-04 4:13 
GeneralRe: Monitoring a folder for new files Pin
BlackDice30-Sep-04 6:01
BlackDice30-Sep-04 6:01 
QuestionHow to capture an image from an USB WebCam? Pin
Anonymous27-Sep-04 5:57
Anonymous27-Sep-04 5:57 
AnswerRe: How to capture an image from an USB WebCam? Pin
GermanGeorge28-Sep-04 4:21
GermanGeorge28-Sep-04 4:21 
yes there is.

here is what you have to do:

1) use the code you find below
2) create a BITMAPINFOHEADER
3) write the BITMAPINFOHEADER and the bitmap, that is captured below to a file.

hdcScreen = CreateDC("DISPLAY", NULL, NULL, NULL);
hdcCompatible = CreateCompatibleDC(hdcScreen);
hbmScreen = CreateCompatibleBitmap(hdcScreen, Videobild.right, Videobild.bottom);
if (hbmScreen == NULL)
MessageBox("Bmp konnte nicht erstellt werden");
hbmScreen = ::CreateDIBSection(dc.GetSafeHdc(), (LPBITMAPINFO) m_dibFile.m_lpBMIH,DIB_RGB_COLORS, (LPVOID*) &m_dibFile.m_lpImage, NULL, 0);
GDIObject=SelectObject(hdcCompatible, hbmScreen);
if(GDIObject==NULL)
MessageBox("Object konnte nicht selected werden");


if (!BitBlt(hdcCompatible, 0,0, Videobild.right, Videobild.bottom, hdcScreen, Videobild.left,Videobild.top, SRCCOPY))
MessageBox("Object konnte nicht geBitBltet werden");


AnswerRe: How to capture an image from an USB WebCam? Pin
c.mora29-Sep-04 9:01
c.mora29-Sep-04 9:01 
QuestionHow to get vertical tabs with Property Sheets Pin
AnotherTompa27-Sep-04 5:48
AnotherTompa27-Sep-04 5:48 
AnswerRe: How to get vertical tabs with Property Sheets Pin
Yves Tkaczyk27-Sep-04 7:57
Yves Tkaczyk27-Sep-04 7:57 
GeneralRe: How to get vertical tabs with Property Sheets Pin
AnotherTompa28-Sep-04 23:24
AnotherTompa28-Sep-04 23:24 
QuestionPossible to Bold Text in List Box Control? Pin
Anonymous27-Sep-04 5:01
Anonymous27-Sep-04 5:01 
AnswerRe: Possible to Bold Text in List Box Control? Pin
David Salter27-Sep-04 5:18
David Salter27-Sep-04 5:18 
GeneralProblem with the SetWindowText Pin
Neelesh K J Jain27-Sep-04 4:43
Neelesh K J Jain27-Sep-04 4:43 
GeneralRe: Problem with the SetWindowText Pin
David Crow27-Sep-04 4:54
David Crow27-Sep-04 4:54 
GeneralCombobox problem Pin
wolfjj27-Sep-04 4:14
wolfjj27-Sep-04 4:14 
GeneralRe: Combobox problem Pin
David Crow27-Sep-04 5:01
David Crow27-Sep-04 5:01 
GeneralRe: Combobox problem Pin
wolfjj27-Sep-04 5:40
wolfjj27-Sep-04 5:40 
GeneralRe: Combobox problem Pin
David Crow27-Sep-04 5:53
David Crow27-Sep-04 5:53 
GeneralRe: Combobox problem Pin
wolfjj27-Sep-04 6:01
wolfjj27-Sep-04 6:01 
GeneralRe: Combobox problem Pin
Tom Wright27-Sep-04 6:59
Tom Wright27-Sep-04 6:59 
GeneralRe: Combobox problem Pin
wolfjj27-Sep-04 7:21
wolfjj27-Sep-04 7:21 
GeneralRe: Combobox problem Pin
David Crow27-Sep-04 8:30
David Crow27-Sep-04 8:30 
GeneralRe: Combobox problem Pin
wolfjj27-Sep-04 8:46
wolfjj27-Sep-04 8:46 

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.