How to C in Visual Studio .NET

This is a discussion on How to C in Visual Studio .NET within the C Programming forums, part of the General Programming Boards category; How to Compile C in Visual Studio .NET Some code like this Code: #include <stdio.h> int main() { printf("How to ...

  1. #1
    Registered User xxxrugby's Avatar
    Join Date
    Jan 2005
    Posts
    178

    How to C in Visual Studio .NET

    How to Compile C in Visual Studio .NET

    Some code like this

    Code:
    #include <stdio.h>
    
    int main()
    {
         printf("How to compile DOS C or C++ in Visual Studio.NET");
     return 0;
    }
    Sorry for spelling errors, not English!
    xxxrugby: "All Human Race Will Die From My Hand!"
    xxxrugby: "We are all philosophers, when question is about politics!"

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,535
    1. Choose a console project type
    2. Make sure you save the file as prog.c (not prog.cpp)
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    247
    Your best bet would be to get a compiler that is C complient and allows you to run C programs with a C compiler...Have a look here for DevC++...
    http://www.bloodshed.net/
    hoping to be certified (programming in c)
    here's the news - I'm officially certified.

  4. #4
    Registered User
    Join Date
    Sep 2004
    Posts
    44
    C code compiles just fine in Visual Studio .NET if you do what Salem says.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 09:43 AM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21