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. Create a C program in Visual Studio 2005

Create a C program in Visual Studio 2005

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiotutorialquestion
3 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.
  • B Offline
    B Offline
    bigdenny200
    wrote on last edited by
    #1

    Hello. Can someone explain me how to create a C program using Visual Studio 2005? (I've been trying lots of ways, e.g. creating c++ files, and changing extension to a c file, but I was getting errors). Thanks!

    P M 2 Replies Last reply
    0
    • B bigdenny200

      Hello. Can someone explain me how to create a C program using Visual Studio 2005? (I've been trying lots of ways, e.g. creating c++ files, and changing extension to a c file, but I was getting errors). Thanks!

      P Offline
      P Offline
      Perspx
      wrote on last edited by
      #2

      Write your program in VC++ seeing as it's an extension to the C language and just write your C code. You can ignore the C++ additions such as object-orientation etc (or go with Mike's suggestion.) [Edit] If you're looking for a good C compiler, I'd recommend Pelles C. It's free, too. Regards, --Perspx

      "I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
      "Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds

      modified on Sunday, October 19, 2008 7:15 AM

      1 Reply Last reply
      0
      • B bigdenny200

        Hello. Can someone explain me how to create a C program using Visual Studio 2005? (I've been trying lots of ways, e.g. creating c++ files, and changing extension to a c file, but I was getting errors). Thanks!

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        New Visual Studio 2005 projects default to 'compile code as C++'. To change this, go to the project's Property Pages dialog and click the C/C++ folder, Advanced, and change Compile As to 'Compile Code As C (/TC)'.

        "Multithreading is just one damn thing after, before, or simultaneous with another." - Andrei Alexandrescu

        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