Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Back Room
  4. a little consistency, please

a little consistency, please

Scheduled Pinned Locked Moved The Back Room
c++htmldatabasecomquestion
10 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris Losinger
    wrote on last edited by
    #1

    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

    Smaller Animals Software

    S R J M 4 Replies Last reply
    0
    • C Chris Losinger

      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

      Smaller Animals Software

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      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

      B 1 Reply Last reply
      0
      • S Shog9 0

        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

        B Offline
        B Offline
        brianwelsch
        wrote on last edited by
        #3

        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

        S 1 Reply Last reply
        0
        • B brianwelsch

          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

          S Offline
          S Offline
          Shog9 0
          wrote on last edited by
          #4

          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

          B P 2 Replies Last reply
          0
          • S Shog9 0

            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

            B Offline
            B Offline
            brianwelsch
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • C Chris Losinger

              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

              Smaller Animals Software

              R Offline
              R Offline
              Roger Wright
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • C Chris Losinger

                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

                Smaller Animals Software

                J Offline
                J Offline
                Jorgen Sigvardsson
                wrote on last edited by
                #7

                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

                C 1 Reply Last reply
                0
                • C Chris Losinger

                  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

                  Smaller Animals Software

                  M Offline
                  M Offline
                  Michael Dunn
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • J Jorgen Sigvardsson

                    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

                    C Offline
                    C Offline
                    Chris Losinger
                    wrote on last edited by
                    #9

                    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

                    Smaller Animals Software

                    1 Reply Last reply
                    0
                    • S Shog9 0

                      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

                      P Offline
                      P Offline
                      peterchen
                      wrote on last edited by
                      #10

                      well... that everybody still uses MFC? :cool:


                      skulls don't kiss  for an explanation - wait for the vacation photos!   [sighist]

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups