Click here to Skip to main content
16,005,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can I keep a CBitmap dc in memory Pin
Christian Graus8-Aug-01 12:31
protectorChristian Graus8-Aug-01 12:31 
GeneralRe: Can I keep a CBitmap dc in memory Pin
Craig Miller9-Aug-01 7:02
Craig Miller9-Aug-01 7:02 
GeneralRe: Can I keep a CBitmap dc in memory Pin
Christian Graus9-Aug-01 11:31
protectorChristian Graus9-Aug-01 11:31 
GeneralRe: Can I keep a CBitmap dc in memory Pin
Craig Miller9-Aug-01 12:12
Craig Miller9-Aug-01 12:12 
GeneralRe: Can I keep a CBitmap dc in memory Pin
Christian Graus9-Aug-01 12:28
protectorChristian Graus9-Aug-01 12:28 
GeneralRe: Can I keep a CBitmap dc in memory Pin
Craig Miller9-Aug-01 12:54
Craig Miller9-Aug-01 12:54 
GeneralRe: Can I keep a CBitmap dc in memory Pin
Christian Graus9-Aug-01 13:05
protectorChristian Graus9-Aug-01 13:05 
GeneralSTL weirdness Pin
#realJSOP8-Aug-01 7:42
professional#realJSOP8-Aug-01 7:42 
I wrote an STL version of my CQStringParser class, and in order for it to compile cleanly at warning level 4, I had to do the following:

// Set the wanring level to 3 because if you don't, you'll get 
// over 40 warnings about crap in the standard libraries
#pragma warning (push, 3)
// Now, you have to disable warning 4786 because when the STL macros 
// are expanded, the identifiers are greater than 255 characters in 
// the debug info.  
#pragma warning (disable : 4786)

#include <list>
#include <string>

// reset all warnings to their prior state
#pragma warning (pop)


Why do I have to pragma around those includes? Is this just an example of Microsoft's inability to develope standard code?

Next question - When I run the app, Boundschecker reports memory and resource leaks in the very same files that generate the warnings. Why?

I guess I just don't get it - what does the STL bring to the table that MFC doesn't do as well or better?
GeneralRe: STL weirdness Pin
Chris Losinger8-Aug-01 8:25
professionalChris Losinger8-Aug-01 8:25 
GeneralRe: STL weirdness Pin
Todd Smith8-Aug-01 10:47
Todd Smith8-Aug-01 10:47 
GeneralRe: STL weirdness Pin
Tomasz Sowinski9-Aug-01 3:22
Tomasz Sowinski9-Aug-01 3:22 
GeneralRe: STL weirdness Pin
Christian Graus8-Aug-01 12:23
protectorChristian Graus8-Aug-01 12:23 
GeneralRe: STL weirdness Pin
8-Aug-01 12:53
suss8-Aug-01 12:53 
GeneralRe: STL weirdness Pin
Philippe Mori9-Aug-01 4:09
Philippe Mori9-Aug-01 4:09 
Questionthe heap vs the stack? Pin
8-Aug-01 1:43
suss8-Aug-01 1:43 
AnswerRe: the heap vs the stack? Pin
Jake Palmer8-Aug-01 9:11
Jake Palmer8-Aug-01 9:11 
GeneralRe: the heap vs the stack? Pin
James Brown8-Aug-01 9:34
James Brown8-Aug-01 9:34 
GeneralMinimized/Maximized Pin
8-Aug-01 0:56
suss8-Aug-01 0:56 
GeneralRe: Minimized/Maximized Pin
8-Aug-01 1:06
suss8-Aug-01 1:06 
GeneralRe: Minimized/Maximized Pin
8-Aug-01 1:46
suss8-Aug-01 1:46 
GeneralRe: Minimized/Maximized Pin
8-Aug-01 6:40
suss8-Aug-01 6:40 
QuestionWhich method of CFile can delete a specified part from owner ??? Pin
8-Aug-01 0:28
suss8-Aug-01 0:28 
GeneralThe "x" button Pin
8-Aug-01 0:15
suss8-Aug-01 0:15 
GeneralRe: The Pin
8-Aug-01 0:29
suss8-Aug-01 0:29 
GeneralRe: The Pin
8-Aug-01 0:41
suss8-Aug-01 0:41 

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.