AssemblyInfo.cpp & Resource.h ***MISSING***

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I really need help. I use C++ VisualStudio.net version 2002. I
tried to create a very simple console app. However, it won't compile, then I
found out that I am missing two important files that pre-load when you create
a Console Application, AssemblyInfo.cpp and Resource.h files. According to
the long search I did, these files help compile statements like
Console::WriteLine() or int _tmain(). I tried repariing it but it still
won't load. I was wondering if any one of you could tell me what I could do.
 
Hi David!
I really need help. I use C++ VisualStudio.net version 2002. I
tried to create a very simple console app. However, it won't compile, then I
found out that I am missing two important files that pre-load when you create
a Console Application, AssemblyInfo.cpp and Resource.h files. According to
the long search I did, these files help compile statements like
Console::WriteLine() or int _tmain().

No.

First you need to decide what you want to do:
1. Managed C++ application (=> needs the .Net-Framework on the target
computer and you can use constructus like "Console::WriteLine()"
2. Unmanaged (native) c++ (=> needs "nothing" and you can use constructs
like "printf")
I tried repariing it but it still
won't load. I was wondering if any one of you could tell me what I could do.

If you want to create a managed app, you need to add a reference to
mscorlib.dll
To create a managed console app go to "File|New|Project|Visual
C++|Console Application (.NET)"

To create an unamaged (native) C++ console app go to
"File|New|Project|Visual C++|Win32 Console Project"

The main difference between these tow is the useage of the "/clr"
compiler flag.

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
This is exactly what I do and this is the problem I get. I want to create a
new Console Application. So I click on new projects, then I click on Win32
application. window pops up then I click on settings and click on "Console
Application." after that I click on finish. Now, comapred to the book there
are several files that I need that arne't showing up.

For some reason I don't have Console Application (.net) as a selection. I
only have Win32application. Then I choose Console Application. I don't know
what you call it but when I copy the Hello world code from the book, when the
code builds, theres an error. And I traced the error to the files that are
missing which are AssemblyInfo.cpp & resource.h.
 
This is exactly what I do and this is the problem I get. I want to create a
new Console Application. So I click on new projects, then I click on Win32
application. window pops up then I click on settings and click on "Console
Application." after that I click on finish. Now, comapred to the book there
are several files that I need that arne't showing up.

For some reason I don't have Console Application (.net) as a selection. I
only have Win32application. Then I choose Console Application. I don't know
what you call it but when I copy the Hello world code from the book, when the
code builds, theres an error. And I traced the error to the files that are
missing which are AssemblyInfo.cpp & resource.h.

In .NET 2003, when you create a new project, one of those listed for
the category ".NET" is "Console Application." I skipped 2002, so I
don't know if they are organized the same way.
 
In 2002, there is no Console Application icon, in the selection screen. You
have to turn it on in the the win32 settings.
 
Back
Top