a little consistency, please
-
in MFC, a CRect is derived from RECT, and provides operators LPRECT and LPCRECT so that you can simply pass the CRect to functions that want a RECT*. these extremely handy operators are simply "return this;" and "return *this;". rocket science. on the other hand, CPoint is derived directly from POINT, is even simpler than CRect, but provides neither a POINT * or const POINT* operator. nothing like doing half the job! no, it's not a "programming question", since i'm not asking a question. -c
If Ben Affleck is sexy, then the terrorists have won. --Sheerly Avni
-
in MFC, a CRect is derived from RECT, and provides operators LPRECT and LPCRECT so that you can simply pass the CRect to functions that want a RECT*. these extremely handy operators are simply "return this;" and "return *this;". rocket science. on the other hand, CPoint is derived directly from POINT, is even simpler than CRect, but provides neither a POINT * or const POINT* operator. nothing like doing half the job! no, it's not a "programming question", since i'm not asking a question. -c
If Ben Affleck is sexy, then the terrorists have won. --Sheerly Avni
Yeah... MFC sure does suck ass. I dream of someday being able to spend more time debugging my own code than that of the framework i am using... X| Shog9 ------
That why you have a dual processor system. One for system, one for the screen saver - Mark Nischalke on Win2k server administration
-
Yeah... MFC sure does suck ass. I dream of someday being able to spend more time debugging my own code than that of the framework i am using... X| Shog9 ------
That why you have a dual processor system. One for system, one for the screen saver - Mark Nischalke on Win2k server administration
Shog9 wrote: I dream of someday being able to spend more time debugging my own code than that of the framework i am using... You could of course, come up with one from scratch. ;P BW "I'm coming with you! I got you fired, it's the least I can do. Well, the least I could do is absolutely nothing, but I'll go you one better and come along!" - Homer J. Simpson
-
Shog9 wrote: I dream of someday being able to spend more time debugging my own code than that of the framework i am using... You could of course, come up with one from scratch. ;P BW "I'm coming with you! I got you fired, it's the least I can do. Well, the least I could do is absolutely nothing, but I'll go you one better and come along!" - Homer J. Simpson
-
But then what would i have to whine about? :laugh: Shog9 ------
That why you have a dual processor system. One for system, one for the screen saver - Mark Nischalke on Win2k server administration
You're a creative guy, Shog. You'll think of something. ;P :-D BW "I'm coming with you! I got you fired, it's the least I can do. Well, the least I could do is absolutely nothing, but I'll go you one better and come along!" - Homer J. Simpson
-
in MFC, a CRect is derived from RECT, and provides operators LPRECT and LPCRECT so that you can simply pass the CRect to functions that want a RECT*. these extremely handy operators are simply "return this;" and "return *this;". rocket science. on the other hand, CPoint is derived directly from POINT, is even simpler than CRect, but provides neither a POINT * or const POINT* operator. nothing like doing half the job! no, it's not a "programming question", since i'm not asking a question. -c
If Ben Affleck is sexy, then the terrorists have won. --Sheerly Avni
Chris Losinger wrote: nothing like doing half the job! That's part of the fun, doing the other half of the job for them!:-D "A foolish consistency is the hobgoblin of little minds" - Ralph Waldo Emerson
-
in MFC, a CRect is derived from RECT, and provides operators LPRECT and LPCRECT so that you can simply pass the CRect to functions that want a RECT*. these extremely handy operators are simply "return this;" and "return *this;". rocket science. on the other hand, CPoint is derived directly from POINT, is even simpler than CRect, but provides neither a POINT * or const POINT* operator. nothing like doing half the job! no, it's not a "programming question", since i'm not asking a question. -c
If Ben Affleck is sexy, then the terrorists have won. --Sheerly Avni
Hey.. Derive your own class CPointEx from CPoint, and let it implement operator LPPOINT and LPCPOINT :) -- standing so tall, the ground behind no trespassers, on every floor a garden swing, and another door she makes it clear, that everything is hers A place of abode, not far from here, Ms. Van de Veer
-
in MFC, a CRect is derived from RECT, and provides operators LPRECT and LPCRECT so that you can simply pass the CRect to functions that want a RECT*. these extremely handy operators are simply "return this;" and "return *this;". rocket science. on the other hand, CPoint is derived directly from POINT, is even simpler than CRect, but provides neither a POINT * or const POINT* operator. nothing like doing half the job! no, it's not a "programming question", since i'm not asking a question. -c
If Ben Affleck is sexy, then the terrorists have won. --Sheerly Avni
WTL has the same problem, but at least that's easy to fix. ;) --Mike-- "alyson hannigan is so cute it's crazy" -- Googlism Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm
-
Hey.. Derive your own class CPointEx from CPoint, and let it implement operator LPPOINT and LPCPOINT :) -- standing so tall, the ground behind no trespassers, on every floor a garden swing, and another door she makes it clear, that everything is hers A place of abode, not far from here, Ms. Van de Veer
it's probably easier just to add the "&" to all my CPoints. :) -c
If Ben Affleck is sexy, then the terrorists have won. --Sheerly Avni
-
But then what would i have to whine about? :laugh: Shog9 ------
That why you have a dual processor system. One for system, one for the screen saver - Mark Nischalke on Win2k server administration