Click here to Skip to main content
15,911,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog Box error Pin
Michael Dunn11-Oct-02 19:48
sitebuilderMichael Dunn11-Oct-02 19:48 
QuestionHow we by pass Window Printer Dialog? Pin
Anonymous11-Oct-02 17:16
Anonymous11-Oct-02 17:16 
AnswerRe: How we by pass Window Printer Dialog? Pin
Paul M Watt11-Oct-02 18:11
mentorPaul M Watt11-Oct-02 18:11 
GeneralRe: How we by pass Window Printer Dialog? Pin
Anonymous12-Oct-02 12:04
Anonymous12-Oct-02 12:04 
GeneralIcon Import/Editor :: MFC Pin
valikac11-Oct-02 12:31
valikac11-Oct-02 12:31 
GeneralRe: Icon Import/Editor :: MFC Pin
Gary R. Wheeler11-Oct-02 15:56
Gary R. Wheeler11-Oct-02 15:56 
GeneralRe: Icon Import/Editor :: MFC Pin
valikac11-Oct-02 16:16
valikac11-Oct-02 16:16 
QuestionPermanent vs. Temporary DC's? Pin
Henry P.11-Oct-02 11:56
Henry P.11-Oct-02 11:56 
I'm writing a program employing sprite animation. Each sprite holds its image in the form of a device-dependent bitmap (a HBITMAP) as well as other data that will allow it to be rendered. In order to render this bitmap onto a display surface, the bitmap needs to be selected into a memory DC first. My question: is it better to create a temporary memory DC every time the sprite needs to be rendered (then delete this DC after you've done rendering), or to create a permanent memory DC so that you don't have to create a DC everytime the sprite needs rendering. The "permanent DC" method would presumably be faster than the "temporary DC" method since you don't have to create the DC every time you render, but requires memory to hold the DC. How much speed improvement would having a permanent memory DC bring? and how much memory penalty?

(As an aside, I could make the sprite hold a DIB instead of a DDB and then render the DIB with DrawDibDraw, StretchDIBits, or SetDIBitsToDevice, which doesn't require a source DC. But would this method be significantly slower?)

Sorry for the long post. Any reply would be greatly appreciated.



Henry

AnswerRe: Permanent vs. Temporary DC's? Pin
Neville Franks11-Oct-02 12:41
Neville Franks11-Oct-02 12:41 
GeneralRe: Permanent vs. Temporary DC's? Pin
Henry P.11-Oct-02 12:55
Henry P.11-Oct-02 12:55 
GeneralRe: Permanent vs. Temporary DC's? Pin
Neville Franks11-Oct-02 13:13
Neville Franks11-Oct-02 13:13 
AnswerRe: Permanent vs. Temporary DC's? Pin
Paul M Watt11-Oct-02 14:31
mentorPaul M Watt11-Oct-02 14:31 
GeneralRe: Permanent vs. Temporary DC's? Pin
Henry P.11-Oct-02 15:05
Henry P.11-Oct-02 15:05 
GeneralRe: Permanent vs. Temporary DC's? Pin
Gary R. Wheeler11-Oct-02 16:02
Gary R. Wheeler11-Oct-02 16:02 
QuestionCFormView derived class w/o relying on the resource.h? Pin
dazinith11-Oct-02 10:31
dazinith11-Oct-02 10:31 
AnswerRe: CFormView derived class w/o relying on the resource.h? Pin
Chris Richardson11-Oct-02 11:26
Chris Richardson11-Oct-02 11:26 
Generalstd::vector question Pin
Rene De La Garza11-Oct-02 10:27
Rene De La Garza11-Oct-02 10:27 
GeneralRe: std::vector question Pin
Maximilien11-Oct-02 10:33
Maximilien11-Oct-02 10:33 
GeneralRe: std::vector question Pin
Daniel Turini11-Oct-02 10:31
Daniel Turini11-Oct-02 10:31 
GeneralCfg File Reading Pin
Anonymous11-Oct-02 10:26
Anonymous11-Oct-02 10:26 
GeneralRe: Cfg File Reading Pin
Maximilien11-Oct-02 10:31
Maximilien11-Oct-02 10:31 
GeneralRe: Cfg File Reading Pin
Anonymous11-Oct-02 10:41
Anonymous11-Oct-02 10:41 
GeneralTrying to findout Drive type from OS Path Pin
Xeena11-Oct-02 10:12
Xeena11-Oct-02 10:12 
GeneralRe: Trying to findout Drive type from OS Path Pin
Mike Nordell12-Oct-02 6:03
Mike Nordell12-Oct-02 6:03 
Generalrecordset ADO for an empty database Pin
ns11-Oct-02 10:15
ns11-Oct-02 10:15 

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.