Click here to Skip to main content
15,913,090 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Permanent vs. Temporary DC's? Pin
Neville Franks11-Oct-02 12:41
Neville Franks11-Oct-02 12:41 
I don't think memory is the issue here, but the notion of keeping permanent DC's is. If I dig way back to my Windows 3.0 days DC's were a scarce commodity, to be used and then released asap. Now we've come a long way since then, but nevertheless I don't think you want to grab a DC and hold it for a long period. One approach is that if you know you are about to draw a whole bunch of stuff grab the DC and whatever else you need at the start and let it go at the end. Or even look at caching a DC.

That said why don't you start with the simplest approach, see if it is too slow and then look at optimising it. Profile the code to see where the hotspots are. Getting a DC may be inconsequential.

Neville Franks, Author of ED for Windows. www.getsoft.com
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 
GeneralRe: recordset ADO for an empty database Pin
John M. Drescher11-Oct-02 10:25
John M. Drescher11-Oct-02 10:25 

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.