none
Getting started with Visual Studio 2015 and C++

    Question

  • This is a VERY basic 'getting started' question.

    I now have an answer, thanks to all, David 09-Oct-16.

    I do: file > new > project > Visual C++ > Windows console application > 'name'  > ok > (Welcome) finish. I get the following:

     -------------------------------------------

    // ConsoleApplication1.cpp : Defines the entry point for the console application.
    //

    #include "stdafx.h"


    int main()
    {
        return 0;
    }

    ----------------------------------------

    But when I modify the code to the following simple program (which is a direct copy from the book 'Microsoft Visual C++/CLI) it does not work.  To start with it does not recognise 'System'. 

    ---------------------------------------

    using namespace System;

    int main()

    Console::WriteLine("Hello World");

    return 0;

    }

    ---------------------------------------


    • Edited by Davidjgw20 Monday, October 10, 2016 12:37 AM
    Tuesday, October 4, 2016 6:19 PM

Answers

All replies