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. General Programming
  3. C / C++ / MFC
  4. How do I check syntax in Visual Studio 2008?

How do I check syntax in Visual Studio 2008?

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpvisual-studiotutorialannouncement
6 Posts 4 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.
  • M Offline
    M Offline
    Member 868926
    wrote on last edited by
    #1

    I used to be able to do this in my earlier version but can't work out how to do it now. It was a quick and useful way to check the syntax of an individual file was OK before compiling. Thanks Greg

    D I 2 Replies Last reply
    0
    • M Member 868926

      I used to be able to do this in my earlier version but can't work out how to do it now. It was a quick and useful way to check the syntax of an individual file was OK before compiling. Thanks Greg

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Member 868926 wrote:

      ...check the syntax of an individual file was OK before compiling.

      Maybe I'm missing something, but the compiler is checking the syntax. :confused:

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Man who follows car will be exhausted." - Confucius

      _ 1 Reply Last reply
      0
      • D David Crow

        Member 868926 wrote:

        ...check the syntax of an individual file was OK before compiling.

        Maybe I'm missing something, but the compiler is checking the syntax. :confused:

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Man who follows car will be exhausted." - Confucius

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        It's probably a third party macro or something similar. I remember having written a program that parses all .CPP and .H files in a folder and its sub-folders to check for syntax. It even did a little formatting.

        «_Superman_» I love work. It gives me something to do between weekends.
        Microsoft MVP (Visual C++)

        D 1 Reply Last reply
        0
        • _ _Superman_

          It's probably a third party macro or something similar. I remember having written a program that parses all .CPP and .H files in a folder and its sub-folders to check for syntax. It even did a little formatting.

          «_Superman_» I love work. It gives me something to do between weekends.
          Microsoft MVP (Visual C++)

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          «_Superman_» wrote:

          ...a program that parses all .CPP and .H files in a folder and its sub-folders to check for syntax.

          So wouldn't that be a C/C++ compiler but without the resulting .obj file(s)?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Man who follows car will be exhausted." - Confucius

          _ 1 Reply Last reply
          0
          • M Member 868926

            I used to be able to do this in my earlier version but can't work out how to do it now. It was a quick and useful way to check the syntax of an individual file was OK before compiling. Thanks Greg

            I Offline
            I Offline
            Iain Clarke Warrior Programmer
            wrote on last edited by
            #5

            Unless it's an esoteric add in, the only thing I can think of is that 2008 does not have a "compile this active document" button - so you're doing a compile all instead. I customised 2008 and added the toolbar button myself. I think ctrl-f7 does the same job. Iain.

            I have now moved to Sweden for love (awwww).

            1 Reply Last reply
            0
            • D David Crow

              «_Superman_» wrote:

              ...a program that parses all .CPP and .H files in a folder and its sub-folders to check for syntax.

              So wouldn't that be a C/C++ compiler but without the resulting .obj file(s)?

              "One man's wage rise is another man's price increase." - Harold Wilson

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              "Man who follows car will be exhausted." - Confucius

              _ Offline
              _ Offline
              _Superman_
              wrote on last edited by
              #6

              and without a project and a solution. Let's call it Parformatter (Parser + Formatter). :)

              «_Superman_» I love work. It gives me something to do between weekends.
              Microsoft MVP (Visual C++)

              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