When you create Console Application project in VS.net there are several source files that are preloaded. Here are the source files that are preloaded. Just note this is not an empty project.
source files:
[your source code.cpp]
AssemblyInfo.cpp
stdafx.cpp
Header files that are preloaded are:
resource.h
stdafx.h
For some reason the AssemblyInfo.cpp & Resource.h files do not load. What can I do? If you do not understand still open up VS.net C++ click on console application. Check out the Solution explorer and you'll see what I mean.
Reinstall VS.NET, or repair the installation.
The files are located in
Microsoft Visual Studio .NET 200x\Vc7\VCWizards\mc++winapp\templates\1033
The template for the AssemblyInfo.cpp should be found here.
Reproducing an error is the first step to resolving it.
Trinix wrote:
I'm not asking to reproduce it, I'm asking what do I do since, for some reason, my version ( standard 2002 .net) doesn't load up the file.
Alright, I had a enough. I just added the AssemblyInfo.cpp and now I get TWO C1190 errors. Anyone know what I could do to fix this. Here is my code:
#include "stdafx.h"
#using
<mscorlib.dll>using
namespace System;int
_tmain(){
Console::WriteLine("Hello World");
return 0;}