By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,835 Members | 1,959 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,835 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Nov 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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/
Nov 17 '05 #2

P: n/a
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.

"Jochen Kalmbach [MVP]" wrote:
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/

Nov 17 '05 #3

P: n/a
On Tue, 19 Jul 2005 10:38:17 -0700, "David"
<Da***@discussions.microsoft.com> wrote:
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.

--
Phillip Crews aka Severian
Microsoft MVP, Windows SDK
Posting email address is real, but please post replies on the newsgroup.
Nov 17 '05 #4

P: n/a
In 2002, there is no console app icon. You have to turn it on in the win32
settings.

"Severian [MVP]" wrote:
On Tue, 19 Jul 2005 10:38:17 -0700, "David"
<Da***@discussions.microsoft.com> wrote:
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.

--
Phillip Crews aka Severian
Microsoft MVP, Windows SDK
Posting email address is real, but please post replies on the newsgroup.

Nov 17 '05 #5

P: n/a
In 2002, there is no Console Application icon, in the selection screen. You
have to turn it on in the the win32 settings.

"Severian [MVP]" wrote:
On Tue, 19 Jul 2005 10:38:17 -0700, "David"
<Da***@discussions.microsoft.com> wrote:
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.

--
Phillip Crews aka Severian
Microsoft MVP, Windows SDK
Posting email address is real, but please post replies on the newsgroup.

Nov 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.