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. ATL / WTL / STL
  4. ANSI C in VS 2010

ANSI C in VS 2010

Scheduled Pinned Locked Moved ATL / WTL / STL
c++questionvisual-studiocom
8 Posts 3 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.
  • X Offline
    X Offline
    Xpnctoc
    wrote on last edited by
    #1

    First, I know this question isn't exactly ATL/WTL/STL. I see no category at all in CodeProject.com that really fits this question, so this is as close as I could get. I'm trying to configure a project to accept only ANSI-C syntax. I have read articles that say this can be accomplished by using the /TC and /Za switches. However, I don't see where in the project properties to set them. From MSDN: 1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages. 2. Click the C/C++ folder. 3. Click the Advanced property page. 4. Modify the Compile As property. PROBLEM: When I open the Project Property pages, there is *NO* "C/C++ folder". Can anyone on this forum be more helpful than MS's own documentation? Thank you.

    X L 2 Replies Last reply
    0
    • X Xpnctoc

      First, I know this question isn't exactly ATL/WTL/STL. I see no category at all in CodeProject.com that really fits this question, so this is as close as I could get. I'm trying to configure a project to accept only ANSI-C syntax. I have read articles that say this can be accomplished by using the /TC and /Za switches. However, I don't see where in the project properties to set them. From MSDN: 1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages. 2. Click the C/C++ folder. 3. Click the Advanced property page. 4. Modify the Compile As property. PROBLEM: When I open the Project Property pages, there is *NO* "C/C++ folder". Can anyone on this forum be more helpful than MS's own documentation? Thank you.

      X Offline
      X Offline
      Xpnctoc
      wrote on last edited by
      #2

      Never mind. I found the issue. Apparently the C/C++ property page doesn't show up until you have added at least one source code file. I was trying to configure it before adding any source code files. Seems kind of lame, but there we have it. I am leaving this post up to hopefully help someone else who might run into the same problem.

      L 1 Reply Last reply
      0
      • X Xpnctoc

        Never mind. I found the issue. Apparently the C/C++ property page doesn't show up until you have added at least one source code file. I was trying to configure it before adding any source code files. Seems kind of lame, but there we have it. I am leaving this post up to hopefully help someone else who might run into the same problem.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        This is probably by design. If you have an empty project then there are no C/C++ properties to show. After all, you may be intending to create the project with a different language, or even no language; Visual Studio cannot second guess your intentions.

        I must get a clever new signature for 2011.

        X 1 Reply Last reply
        0
        • X Xpnctoc

          First, I know this question isn't exactly ATL/WTL/STL. I see no category at all in CodeProject.com that really fits this question, so this is as close as I could get. I'm trying to configure a project to accept only ANSI-C syntax. I have read articles that say this can be accomplished by using the /TC and /Za switches. However, I don't see where in the project properties to set them. From MSDN: 1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages. 2. Click the C/C++ folder. 3. Click the Advanced property page. 4. Modify the Compile As property. PROBLEM: When I open the Project Property pages, there is *NO* "C/C++ folder". Can anyone on this forum be more helpful than MS's own documentation? Thank you.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Xpnctoc wrote:

          I see no category at all in CodeProject.com that really fits this question

          Here is the link to the forum for Visual Studio[^] questions.

          I must get a clever new signature for 2011.

          X 1 Reply Last reply
          0
          • L Lost User

            This is probably by design. If you have an empty project then there are no C/C++ properties to show. After all, you may be intending to create the project with a different language, or even no language; Visual Studio cannot second guess your intentions.

            I must get a clever new signature for 2011.

            X Offline
            X Offline
            Xpnctoc
            wrote on last edited by
            #5

            Well this is a tangent, but I totally disagree. The project was created by using the "Empty Project" template under the C++ templates list in the new project dialog... That implies the user intends to make a C++ project, and so at least those settings could be applied as a starting point. I mean, if I am browsing the C++ templates it's not because I intend to create a VB project or something. At least give me the minimum C++ settings as a starting point.

            L A 2 Replies Last reply
            0
            • L Lost User

              Xpnctoc wrote:

              I see no category at all in CodeProject.com that really fits this question

              Here is the link to the forum for Visual Studio[^] questions.

              I must get a clever new signature for 2011.

              X Offline
              X Offline
              Xpnctoc
              wrote on last edited by
              #6

              Thanks.

              1 Reply Last reply
              0
              • X Xpnctoc

                Well this is a tangent, but I totally disagree. The project was created by using the "Empty Project" template under the C++ templates list in the new project dialog... That implies the user intends to make a C++ project, and so at least those settings could be applied as a starting point. I mean, if I am browsing the C++ templates it's not because I intend to create a VB project or something. At least give me the minimum C++ settings as a starting point.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                OK, maybe you should complain to Microsoft.

                I must get a clever new signature for 2011.

                1 Reply Last reply
                0
                • X Xpnctoc

                  Well this is a tangent, but I totally disagree. The project was created by using the "Empty Project" template under the C++ templates list in the new project dialog... That implies the user intends to make a C++ project, and so at least those settings could be applied as a starting point. I mean, if I am browsing the C++ templates it's not because I intend to create a VB project or something. At least give me the minimum C++ settings as a starting point.

                  A Offline
                  A Offline
                  Albert Holguin
                  wrote on last edited by
                  #8

                  I actually agree with you here... it is normally considered bad practice in GUI design to disable options by making them not visible. It creates confusion such as this, it is better to make to make the option inaccessible but still visible.

                  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