Thread: Using Visual C++ 2005 w/o touching C++/CLI

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001

    Using Visual C++ 2005 w/o touching C++/CLI

    Is there a way to use .NET 2005 compiler without messing around with the C++/CLI C#, Java-ized bastard classes?

    If not I will most likely dump 2005 in favor of pure ISO-conformant, not ECMA or MS conformant, C++.

    C++/CLI has nothing to do with C/C++ and as such I cannot fathom why MS is 'adding' their crap to a language and calling the result C++.

    The help files and everything about 2005 tout C++/CLI even in the C++ sections. Whatever happened to standardized C++?

  2. #2
    Join Date
    Jan 2002
    To start with(probably best to use /D switch on a per project basis):
    #define _SECURE_SCL 0
    #define _SECURE_SCL_THROWS 0
    as described here:

    There's possibly others but I've not found them yet; I was hoping there might be a 'master switch' for the ide to turn off c++/cli stuff by default but I've been unsuccessful thus far in finding one.

    If you get any more silly 'deprecated' warnings or error messages then msdn may turn up further preprocessor definitions.

    And, as I've posted elsewhere regarding 'c':

    Quote Originally Posted by Ken Fitlike
    This page describes how to restore standard c (c89) behaviour:

    In short: #define _CRT_SECURE_NO_DEPRECATE (use /D switch).
    Last edited by Ken Fitlike; 05-07-2006 at 06:55 PM. Reason: typo
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM