Answered by:
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
-
Google will provide answers to questions like this much faster than waiting for a response.
One forum is at https://social.msdn.microsoft.com/Forums/en-US/vcgeneral/threads.
A second is at https://social.msdn.microsoft.com/Forums/en-US/vclanguage/threads.
- Proposed as answer by Danny van DamMVP, Editor Thursday, October 6, 2016 7:09 PM
- Marked as answer by Danny van DamMVP, Editor Thursday, October 6, 2016 7:09 PM
Thursday, October 6, 2016 1:54 AM
All replies
-
You will receive better responses if you post Visual C++ questions to one of the Visual C++ forums.Tuesday, October 4, 2016 10:53 PM
-
Thanks (I'm just getting started). However I can't see a C++ forum > Answered , David
- Edited by Davidjgw20 Monday, October 10, 2016 12:38 AM
Wednesday, October 5, 2016 7:07 PM -
Google will provide answers to questions like this much faster than waiting for a response.
One forum is at https://social.msdn.microsoft.com/Forums/en-US/vcgeneral/threads.
A second is at https://social.msdn.microsoft.com/Forums/en-US/vclanguage/threads.
- Proposed as answer by Danny van DamMVP, Editor Thursday, October 6, 2016 7:09 PM
- Marked as answer by Danny van DamMVP, Editor Thursday, October 6, 2016 7:09 PM
Thursday, October 6, 2016 1:54 AM