Thread: What are settings for visual studo???

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    33

    What are settings for visual studo???

    Dear ALL,
    Code:
       I am using Visual Studio compiler for my Embedded Developement..it is multipurpose compiler for all C, MFC ,C++.......How do set the compiler to work as
    C++ compiler..
    once i go to new project following screen i will get
    
    Visual C++
    -------------
    ATL
    CLR
    GENERAL
    MFC
    Smart Device
    Win 32
    
    still so many options are there....for C i can use Win32 '
    please tell me what are the settings i should used for C++ 
    thanks in advance

  2. #2
    Registered User
    Join Date
    Oct 2007
    Posts
    54
    Hai friend for c++ is also the same win32 application but while creating the file you store the file with the extention .cpp ...

  3. #3
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    What version of Visual Studio are you using?

    To get it to compile true C code (at least in VC++ 2005, other versions may be different) you go into your Project Settings -> C/C++ -> Advanced and change the "Compile As" drop down box to "Compile as C Code (/TC)". By default it should already be set to "Compile as C++ Code (/TP)", but if not, that's where you'd change it to be either C or C++ code. Plus you'd obviously name your source files either .c or .cpp...

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It's better to just rename your files with the right extension -> .c - compile as C code. .cpp -> Compile as C++ code.
    But I'm not sure what type of project you're trying to do.
    Win32 is the category you want to look into. From there, you can choose the most applicable type of porject to do. Remember that the type of project you choose does not affect if the code will be C or C++ (though MFC can only be done in C++).
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Application fails to load settings only at windows startup
    By DanFraser in forum C# Programming
    Replies: 3
    Last Post: 09-27-2009, 11:15 AM
  2. sorting the matrix question..
    By transgalactic2 in forum C Programming
    Replies: 47
    Last Post: 12-22-2008, 03:17 PM
  3. (Visual C++) MFC Tree Control to do a settings page
    By guitarist809 in forum Windows Programming
    Replies: 6
    Last Post: 08-30-2008, 11:31 PM
  4. Problems with settings
    By Mavix in forum C# Programming
    Replies: 1
    Last Post: 08-13-2007, 09:54 AM
  5. Citrix regional settings
    By nvoigt in forum Tech Board
    Replies: 0
    Last Post: 10-26-2005, 07:57 AM