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

C / C++ / MFC

 
Generaldetecting exceptions in threads Pin
Chris Eatough20-Jun-03 0:20
Chris Eatough20-Jun-03 0:20 
GeneralRe: detecting exceptions in threads Pin
Ryan Binns20-Jun-03 2:12
Ryan Binns20-Jun-03 2:12 
GeneralRe: detecting exceptions in threads Pin
Chris Eatough20-Jun-03 3:51
Chris Eatough20-Jun-03 3:51 
GeneralRe: detecting exceptions in threads Pin
Jonathan Craig20-Jun-03 3:58
Jonathan Craig20-Jun-03 3:58 
GeneralMouse wheel emulation Pin
Rage20-Jun-03 0:08
professionalRage20-Jun-03 0:08 
GeneralRe: Mouse wheel emulation Pin
KaЯl20-Jun-03 2:15
KaЯl20-Jun-03 2:15 
GeneralRe: Mouse wheel emulation Pin
Ryan Binns20-Jun-03 2:18
Ryan Binns20-Jun-03 2:18 
GeneralBitmap Pin
Anonymous19-Jun-03 23:34
Anonymous19-Jun-03 23:34 
shrunkenpic is an array with the picture data. It is an unsigned char array with values between 0 and 255
I want to display it
why this code doesn't work. I get only a gray surface not the picture I expect. The picture in the memory ist ok if i display it with setpixel it works and looks fine but this method is to slow
I get about 10-15 pics per second from a cam, so the way to save it first to a bitmap file and then display it is to slow.

CBitmap bild;
bild.CreateBitmap(348, 260, 1, 8, shrunkenPic);
bild.SetBitmapBits(348*260,shrunkenPic);

CDC imageDC;
imageDC.CreateCompatibleDC(pDC);
imageDC.SelectObject( &bild);
pDC->BitBlt(0, 0, 348, 260, &imageDC, 0, 0, SRCCOPY);
imageDC.DeleteDC();

Any Ideas?

Heiko


GeneralRe: Bitmap Pin
KaЯl20-Jun-03 2:23
KaЯl20-Jun-03 2:23 
GeneralRe: Bitmap Pin
Anonymous20-Jun-03 2:54
Anonymous20-Jun-03 2:54 
GeneralRe: Bitmap Pin
KaЯl20-Jun-03 3:08
KaЯl20-Jun-03 3:08 
GeneralRe: Bitmap Pin
Anonymous20-Jun-03 11:06
Anonymous20-Jun-03 11:06 
GeneralRe: Bitmap Pin
KaЯl20-Jun-03 11:50
KaЯl20-Jun-03 11:50 
GeneralRe: Bitmap Pin
Anonymous21-Jun-03 0:37
Anonymous21-Jun-03 0:37 
GeneralRe: Bitmap Pin
KaЯl22-Jun-03 21:19
KaЯl22-Jun-03 21:19 
Generaltrying to redefine an int array as a double array Pin
avenhor19-Jun-03 23:12
avenhor19-Jun-03 23:12 
GeneralRe: trying to redefine an int array as a double array Pin
Anonymous19-Jun-03 23:36
Anonymous19-Jun-03 23:36 
GeneralRe: trying to redefine an int array as a double array Pin
David Crow20-Jun-03 4:21
David Crow20-Jun-03 4:21 
QuestionForbid execution ? Pin
The TaZ19-Jun-03 22:56
The TaZ19-Jun-03 22:56 
AnswerRe: Forbid execution ? Pin
RicoH20-Jun-03 0:27
RicoH20-Jun-03 0:27 
AnswerRe: Forbid execution ? Pin
David Crow20-Jun-03 4:25
David Crow20-Jun-03 4:25 
Generaldatetime class in vc++ 6.0 Pin
FrancisNicole19-Jun-03 22:24
FrancisNicole19-Jun-03 22:24 
GeneralRe: datetime class in vc++ 6.0 Pin
KaЯl20-Jun-03 2:27
KaЯl20-Jun-03 2:27 
Questionhow to show my window derived from CWnd Pin
gucy19-Jun-03 22:08
gucy19-Jun-03 22:08 
AnswerRe: how to show my window derived from CWnd Pin
Hans Ruck19-Jun-03 22:35
Hans Ruck19-Jun-03 22:35 

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.