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

This is a discussion on Using Visual C++ 2005 w/o touching C++/CLI within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way to use .NET 2005 compiler without messing around with the C++/CLI C#, Java-ized bastard classes? If ...

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,584

    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
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    To start with(probably best to use /D switch on a per project basis):
    Code:
    #define _SECURE_SCL 0
    #define _SECURE_SCL_THROWS 0
    as described here:

    http://msdn2.microsoft.com/en-US/library/y9ww7c1a.aspx

    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:

    http://msdn2.microsoft.com/en-US/library/8ef0s5kh.aspx

    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, 04: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, 09:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 07:13 PM
  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