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. The Lounge
  3. Visual C++ Dev Center

Visual C++ Dev Center

Scheduled Pinned Locked Moved The Lounge
c++csharpvisual-studio
10 Posts 5 Posters 1 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.
  • R Offline
    R Offline
    Rob Grainger
    wrote on last edited by
    #1

    It amused me that in the age of C++ 11, the best the folk over at Visual C++ Dev Center could come up with for their title graphic was...

    #define VISUAL_STUDIO

    I thought macro's were generally regarded as bad style in modern C++. I suspect their graphic artists just opened a C++ sample and looked at the first few lines. <Edit> Actually, it seems that the Visual Studio dev center, however I did get there by following a link to "Visual C++ Dev Center" on their sidebar. </Edit>

    R M R B 4 Replies Last reply
    0
    • R Rob Grainger

      It amused me that in the age of C++ 11, the best the folk over at Visual C++ Dev Center could come up with for their title graphic was...

      #define VISUAL_STUDIO

      I thought macro's were generally regarded as bad style in modern C++. I suspect their graphic artists just opened a C++ sample and looked at the first few lines. <Edit> Actually, it seems that the Visual Studio dev center, however I did get there by following a link to "Visual C++ Dev Center" on their sidebar. </Edit>

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #2

      A link or it does not exist.

      ~RaGE();

      I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

      R 1 Reply Last reply
      0
      • R Rob Grainger

        It amused me that in the age of C++ 11, the best the folk over at Visual C++ Dev Center could come up with for their title graphic was...

        #define VISUAL_STUDIO

        I thought macro's were generally regarded as bad style in modern C++. I suspect their graphic artists just opened a C++ sample and looked at the first few lines. <Edit> Actually, it seems that the Visual Studio dev center, however I did get there by following a link to "Visual C++ Dev Center" on their sidebar. </Edit>

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        huh ? :confused:

        Nihil obstat

        R 1 Reply Last reply
        0
        • R Rob Grainger

          It amused me that in the age of C++ 11, the best the folk over at Visual C++ Dev Center could come up with for their title graphic was...

          #define VISUAL_STUDIO

          I thought macro's were generally regarded as bad style in modern C++. I suspect their graphic artists just opened a C++ sample and looked at the first few lines. <Edit> Actually, it seems that the Visual Studio dev center, however I did get there by following a link to "Visual C++ Dev Center" on their sidebar. </Edit>

          R Offline
          R Offline
          Rama Krishna Vavilala
          wrote on last edited by
          #4

          Rob Grainger wrote:

          I thought macro's were generally regarded as bad style in modern C++.

          Well macros like max and min are considered bad. But macros such as VISUAL_STUDIO (to indicate the environment) , DEBUG and RELEASE for which there is no alternative (inline function or const) are not really bad.

          R 1 Reply Last reply
          0
          • R Rage

            A link or it does not exist.

            ~RaGE();

            I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

            R Offline
            R Offline
            Rob Grainger
            wrote on last edited by
            #5

            Sorry, I kind of assumed folk here may know how to get to MSDN Dev Centers... Obligatory Link[^]

            R 1 Reply Last reply
            0
            • R Rama Krishna Vavilala

              Rob Grainger wrote:

              I thought macro's were generally regarded as bad style in modern C++.

              Well macros like max and min are considered bad. But macros such as VISUAL_STUDIO (to indicate the environment) , DEBUG and RELEASE for which there is no alternative (inline function or const) are not really bad.

              R Offline
              R Offline
              Rob Grainger
              wrote on last edited by
              #6

              Yes, but hardly a good example of cutting edge C++. Further, VISUAL_STUDIO is not in the list of Predefined Macros[^], so this is not really in that category DEBUG and RELEASE are OK though, I'll give you that.

              1 Reply Last reply
              0
              • M Maximilien

                huh ? :confused:

                Nihil obstat

                R Offline
                R Offline
                Rob Grainger
                wrote on last edited by
                #7

                1. Go to MSDN 2. Follow Link to "Visual C++ Developer Center"

                1 Reply Last reply
                0
                • R Rob Grainger

                  Sorry, I kind of assumed folk here may know how to get to MSDN Dev Centers... Obligatory Link[^]

                  R Offline
                  R Offline
                  Rage
                  wrote on last edited by
                  #8

                  My apologies, I went there and it did not show that page back then :doh: ... It definitely cannot be missed ;)

                  ~RaGE();

                  I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

                  1 Reply Last reply
                  0
                  • R Rob Grainger

                    It amused me that in the age of C++ 11, the best the folk over at Visual C++ Dev Center could come up with for their title graphic was...

                    #define VISUAL_STUDIO

                    I thought macro's were generally regarded as bad style in modern C++. I suspect their graphic artists just opened a C++ sample and looked at the first few lines. <Edit> Actually, it seems that the Visual Studio dev center, however I did get there by following a link to "Visual C++ Dev Center" on their sidebar. </Edit>

                    B Offline
                    B Offline
                    bob16972
                    wrote on last edited by
                    #9

                    Rob Grainger wrote:

                    I thought macro's were generally regarded as bad style in modern C++.

                    Just out of curiosity, can you rewrite a macro like ASSERT as an inline and still have DebugBreak() take you to the offending line of code instead of the call to DebugBreak() in the inline function/method? Every time I try to embrace the idea of discarding the idea of MACROS, I find too many gems in MFC that I struggle to find an equivalent for in a macro free zone.

                    R 1 Reply Last reply
                    0
                    • B bob16972

                      Rob Grainger wrote:

                      I thought macro's were generally regarded as bad style in modern C++.

                      Just out of curiosity, can you rewrite a macro like ASSERT as an inline and still have DebugBreak() take you to the offending line of code instead of the call to DebugBreak() in the inline function/method? Every time I try to embrace the idea of discarding the idea of MACROS, I find too many gems in MFC that I struggle to find an equivalent for in a macro free zone.

                      R Offline
                      R Offline
                      Rob Grainger
                      wrote on last edited by
                      #10

                      bob16972 wrote:

                      I find too many gems in MFC

                      I don't think MFC is regarded as a particularly good illustration of modern code either. ATL is much closer, as was WTL (which has since been dropped by MS, don't know what its current status is). I think assert() is probably one of the few cases where macros are really unavoidable, similarly code that intends to use the predefined __LINE__ and __FILE__ macros.

                      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