Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Still wise to use Microsoft Foundation Classes (MFC) version 11? Pin
Stefan_Lang16-Jan-14 21:49
Stefan_Lang16-Jan-14 21:49 
GeneralRe: Still wise to use Microsoft Foundation Classes (MFC) version 11? Pin
Albert Holguin17-Jan-14 4:07
professionalAlbert Holguin17-Jan-14 4:07 
GeneralStill wise to use Microsoft Foundation Classes (MFC) version 14? Pin
oscar19663-Nov-18 22:53
oscar19663-Nov-18 22:53 
QuestionBug in Visual Studio 2005 compiler? Pin
a_matseevsky16-Jan-14 9:20
a_matseevsky16-Jan-14 9:20 
QuestionRe: Bug in Visual Studio 2005 compiler? Pin
CPallini16-Jan-14 9:24
mveCPallini16-Jan-14 9:24 
AnswerRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky16-Jan-14 13:52
a_matseevsky16-Jan-14 13:52 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
CPallini16-Jan-14 20:02
mveCPallini16-Jan-14 20:02 
AnswerRe: Bug in Visual Studio 2005 compiler? Pin
Stefan_Lang16-Jan-14 21:32
Stefan_Lang16-Jan-14 21:32 
Have you defined your own version of max() or are you using the one provided in some windows header? If the former, try commenting out that function and see if it still compiles in debug and/or release. If the latter, try defining your own function and see if it does compile in debug and/or release.

As an alternative to either of the above you can try and #define NOMINMAX before including windows.h . This will prevent the macro definitions for min() and max().

These suggestions are based on the fact that MS provides macros for min() and max() in some Windows header, and that these macros might mess up code in unexpected ways. I know it did break std::valarray::min() and std::valarray::max() in VS 2003, and it did break std::min and std::max in later versions, until MS eventually fixed it.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky16-Jan-14 21:56
a_matseevsky16-Jan-14 21:56 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
Richard MacCutchan16-Jan-14 22:13
mveRichard MacCutchan16-Jan-14 22:13 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
CPallini16-Jan-14 22:55
mveCPallini16-Jan-14 22:55 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
Richard MacCutchan16-Jan-14 23:01
mveRichard MacCutchan16-Jan-14 23:01 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky17-Jan-14 0:45
a_matseevsky17-Jan-14 0:45 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
Richard MacCutchan17-Jan-14 5:42
mveRichard MacCutchan17-Jan-14 5:42 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky17-Jan-14 7:06
a_matseevsky17-Jan-14 7:06 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
Richard MacCutchan17-Jan-14 7:14
mveRichard MacCutchan17-Jan-14 7:14 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky17-Jan-14 7:30
a_matseevsky17-Jan-14 7:30 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
Richard MacCutchan17-Jan-14 7:41
mveRichard MacCutchan17-Jan-14 7:41 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky17-Jan-14 8:03
a_matseevsky17-Jan-14 8:03 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
Richard MacCutchan17-Jan-14 8:07
mveRichard MacCutchan17-Jan-14 8:07 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
Stefan_Lang19-Jan-14 23:29
Stefan_Lang19-Jan-14 23:29 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
Stefan_Lang19-Jan-14 23:44
Stefan_Lang19-Jan-14 23:44 
QuestionRe: Bug in Visual Studio 2005 compiler? Pin
Richard MacCutchan20-Jan-14 0:21
mveRichard MacCutchan20-Jan-14 0:21 
AnswerRe: Bug in Visual Studio 2005 compiler? Pin
Stefan_Lang20-Jan-14 0:24
Stefan_Lang20-Jan-14 0:24 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky20-Jan-14 0:52
a_matseevsky20-Jan-14 0:52 

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.