Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!lll-winken!iggy.GW.Vitalink.COM!widener!ukma!dftsrv!oneel From: oneel@heawk1.rosserv.gsfc.nasa.gov ( Bruce Oneel ) Newsgroups: comp.windows.ms.programmer Subject: min/max in bc++ Message-ID: Date: 25 Apr 91 14:03:47 GMT Sender: news@dftsrv.gsfc.nasa.gov Distribution: comp Organization: STX/GSFC Nasa Lines: 25 Got a question on windows.h, bc++, and c++ mode. I was entering the sysmet? examples from the petzold book and I noticed that min and max weren't defined. That's funny, they're in help... Well, went spelunking through windows.h and noticed that they are in there, but if you are compiling c++ mode they are ignored. What do you know, to use my fetal windows classes, I've got to use c++ mode! Would some kind person explain why the min and max macros aren't defined when you are using c++ mode? I know how to make them defined but I assume that borland wouldn't have done the #if defs around them if there wasn't a good reason. I just wrote a few quick functions. Messy, but quick. bruce -- | Bruce O'Neel | internet : oneel@heasfs.gsfc.nasa.gov| | Code 664/STX | span : lheavx::oneel | | NASA/GSFC Bld 28/W281 |compuserve: 72737,1315 | | Greenbelt MD 20771 | AT&Tnet : (301)-286-4585 | Thats me in the corner, thats me in the spotlight, losin' my religion -- rem