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. 5 2244
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.
"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/
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.
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Luklrc |
last post by:
Hi,
I'm having to create a querysting with javascript. My problem is that
javscript turns the "&" characher into "&" when it gets used as a
querystring in the url EG:
...
|
by: Santosh |
last post by:
When you right click on file and select properties option,
some files have "Summary" tab.
Using ApplicationInfo.cs file we can set
"Company","Language","Version" etc..
which appeares under...
|
by: Eddie |
last post by:
Hello, there.
When I create new 'VC++ -> CLR -> Windows Form Application' project,
there created AssemblyInfo.cpp file.
There exists strings like
;
I believe this information should be...
|
by: Hovsep Mkrtchyan |
last post by:
That is:
In AssembyInfo.cpp I've wrote
But after compile in dll properties window there is no Version tag.
Does anybody solved this issue? Maybe there must be something mentioned in...
|
by: xenophon |
last post by:
In my 1.1 ASP.NET project, AssemblyInfo.cs had custom information
about versioning and etc. With 2.0, I made an AssemblyInfo.cs in the
root of my site, but with all of the multiple DLLs it appears...
|
by: CuriousGeorge |
last post by:
I've upgraded a .Net 1.1 web app to 2.0 and am having a heck of a time
getting resources to work again. From what I understand if I move my
strings.resx file into the App_GlobalResources folder I...
|
by: Chukkalove |
last post by:
I originally created several "copy" resource reader classes which worked
great individually, but after I converted them into an parent class with
children they no longer find the resources. Each...
|
by: The Coder |
last post by:
I get a version tab in the shell only for VS_VERSION_INFO.
I was expecting AssemblyInfo.cpp to create the version tab .
Can I get AssemblyInfo.cpp to create version tab instead?
If can not get...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
|
by: Matthew3360 |
last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function.
Here is my code.
header("Location:".$urlback);
Is this the right layout the...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
|
by: Matthew3360 |
last post by:
Hi,
I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
|
by: Ricardo de Mila |
last post by:
Dear people, good afternoon...
I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control.
Than I need to discover what...
| |