Click here to Skip to main content
16,012,821 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Restrict Collapsing items in tree control Pin
Michael Dunn6-Apr-07 11:44
sitebuilderMichael Dunn6-Apr-07 11:44 
GeneralRe: Restrict Collapsing items in tree control Pin
Super Hornet7-Apr-07 0:47
Super Hornet7-Apr-07 0:47 
QuestionClass Member Declaration Problem Pin
all_in_flames6-Apr-07 10:18
professionalall_in_flames6-Apr-07 10:18 
AnswerRe: Class Member Declaration Problem Pin
David Crow6-Apr-07 10:45
David Crow6-Apr-07 10:45 
AnswerRe: Class Member Declaration Problem Pin
Michael Dunn6-Apr-07 11:46
sitebuilderMichael Dunn6-Apr-07 11:46 
JokeRe: Class Member Declaration Problem Pin
all_in_flames6-Apr-07 15:08
professionalall_in_flames6-Apr-07 15:08 
QuestionCreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
pnok6-Apr-07 6:37
pnok6-Apr-07 6:37 
AnswerRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
Mark Salsbery6-Apr-07 6:51
Mark Salsbery6-Apr-07 6:51 
pnok wrote:
My program only uses 1,448kb memory when the 145 HBITMAPS are Created


Must be really small bitmaps.

You may want to check the math...

Let's say your screen resolution is 640x480, 24-bit

640 * 480 * 3 = 921600 bytes per frame
921600 * 30 = 27648000 bytes per second (do the math from here for 5 minutes OMG | :OMG: )
921600 * 145 = 133632000 bytes for 145 frames

You'll need to manage memory yourself for this much data. GDI resources aren't infinite.

I would recommend preallocating buffers as much as possible since most of the time is spent in
allocation. Keep raw screen data in your memory buffers and you can do what you wish with the
data when the capture is finished.


"If you can dodge a wrench, you can dodge a ball."

GeneralRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
led mike6-Apr-07 7:15
led mike6-Apr-07 7:15 
GeneralRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
Mark Salsbery6-Apr-07 7:21
Mark Salsbery6-Apr-07 7:21 
GeneralRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
led mike6-Apr-07 7:47
led mike6-Apr-07 7:47 
AnswerRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
Chris Losinger6-Apr-07 9:33
professionalChris Losinger6-Apr-07 9:33 
QuestionDisplay Series of numbers in an edit box of MFC Pin
SamPrem6-Apr-07 6:05
SamPrem6-Apr-07 6:05 
AnswerRe: Display Series of numbers in an edit box of MFC Pin
houari_id6-Apr-07 6:08
houari_id6-Apr-07 6:08 
AnswerRe: Display Series of numbers in an edit box of MFC Pin
prasad_som6-Apr-07 6:42
prasad_som6-Apr-07 6:42 
AnswerRe: Display Series of numbers in an edit box of MFC Pin
David Crow6-Apr-07 6:44
David Crow6-Apr-07 6:44 
AnswerRe: Display Series of numbers in an edit box of MFC Pin
krmed7-Apr-07 9:14
krmed7-Apr-07 9:14 
QuestionHow to use IMediaSeeking in filter's pin? Pin
houari_id6-Apr-07 5:58
houari_id6-Apr-07 5:58 
AnswerRe: How to use IMediaSeeking in filter's pin? Pin
Mark Salsbery6-Apr-07 7:04
Mark Salsbery6-Apr-07 7:04 
GeneralRe: How to use IMediaSeeking in filter's pin? Pin
houari_id6-Apr-07 10:45
houari_id6-Apr-07 10:45 
GeneralRe: How to use IMediaSeeking in filter's pin? Pin
Mark Salsbery7-Apr-07 6:45
Mark Salsbery7-Apr-07 6:45 
QuestionCHM files Pin
shiraztk6-Apr-07 4:18
shiraztk6-Apr-07 4:18 
QuestionRe: CHM files Pin
David Crow6-Apr-07 4:57
David Crow6-Apr-07 4:57 
AnswerRe: CHM files Pin
Mark Salsbery6-Apr-07 6:37
Mark Salsbery6-Apr-07 6:37 
QuestionXML Pin
Try6-Apr-07 3:27
Try6-Apr-07 3:27 

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.