472,952 Members | 2,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,952 software developers and data experts.

First Visual Studio C++.net Project

I'm attempting to build my first VC++ .net project and I'm unable to get a
clean compile. Please view code below:

// This is the main project file for VC++ application project
// generated using an Application Wizard.

#include "stdafx.h"

#using <mscorlib.dll>

using namespace System;

int _tmain()
{
// TODO: Please replace the sample code below with your own.
Console::WriteLine(S"Hello World");
return 0;
}

The above code is very simple nothing fancy. I continue to get a compile
error however, not errors are display in the output window. What ever the
error is it's not allowing the "exe" to be built.

Does any one see anthing wrong? Where else should I be looking to locate
what's wrong?
thanks
Nov 17 '05 #1
11 1814
I generated the project using Application Wizard.
thanks

"Larry Bird" wrote:
I'm attempting to build my first VC++ .net project and I'm unable to get a
clean compile. Please view code below:

// This is the main project file for VC++ application project
// generated using an Application Wizard.

#include "stdafx.h"

#using <mscorlib.dll>

using namespace System;

int _tmain()
{
// TODO: Please replace the sample code below with your own.
Console::WriteLine(S"Hello World");
return 0;
}

The above code is very simple nothing fancy. I continue to get a compile
error however, not errors are display in the output window. What ever the
error is it's not allowing the "exe" to be built.

Does any one see anthing wrong? Where else should I be looking to locate
what's wrong?
thanks

Nov 17 '05 #2
Here's the out of my compile:

Build Log ------- Build started: Project: ASimpleProject,
Configuration: Debug|Win32 -------

Command Lines Creating temporary file "c:\Documents and
Settings\louis.AZALEA\My Documents\Visual Studio
Projects\ASimpleProject\ASimpleProject\Debug\RSP00 0005.rsp" with contents
[
/Od /AI "C:\Documents and Settings\louis.AZALEA\My Documents\Visual Studio
Projects\ASimpleProject\Debug" /D "WIN32" /D "_DEBUG" /D "_MBCS" /FD /EHsc
/MTd /GS /Yu"stdafx.h" /Fp"Debug/ASimpleProject.pch" /Fo"Debug/"
/Fd"Debug/vc70.pdb" /W3 /c /Zi /clr /TP /FU
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msco rlib.dll"
/FU "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Syst em.dll"
/FU "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Syst em.Data.dll"
".\AssemblyInfo.cpp"
".\ASimpleProject.cpp"
]
Creating command line "cl.exe @"c:\Documents and Settings\louis.AZALEA\My
Documents\Visual Studio
Projects\ASimpleProject\ASimpleProject\Debug\RSP00 0005.rsp" /nologo"
Creating temporary file "c:\Documents and Settings\louis.AZALEA\My
Documents\Visual Studio
Projects\ASimpleProject\ASimpleProject\Debug\RSP00 0006.rsp" with contents
[
/Od /AI "C:\Documents and Settings\louis.AZALEA\My Documents\Visual Studio
Projects\ASimpleProject\Debug" /D "WIN32" /D "_DEBUG" /D "_MBCS" /FD /EHsc
/MTd /GS /Yc"stdafx.h" /Fp"Debug/ASimpleProject.pch" /Fo"Debug/"
/Fd"Debug/vc70.pdb" /W3 /c /Zi /clr /TP /FU
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msco rlib.dll"
/FU "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Syst em.dll"
/FU "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Syst em.Data.dll"
".\stdafx.cpp"
]
Creating command line "cl.exe @"c:\Documents and Settings\louis.AZALEA\My
Documents\Visual Studio
Projects\ASimpleProject\ASimpleProject\Debug\RSP00 0006.rsp" /nologo"
Output Window Results Build log was saved at
"file://c:\Documents and Settings\louis.AZALEA\My Documents\Visual Studio
Projects\ASimpleProject\ASimpleProject\Debug\Build Log.htm"
ASimpleProject - 1 error(s), 0 warning(s)

Thanks

"Larry Bird" wrote:
I'm attempting to build my first VC++ .net project and I'm unable to get a
clean compile. Please view code below:

// This is the main project file for VC++ application project
// generated using an Application Wizard.

#include "stdafx.h"

#using <mscorlib.dll>

using namespace System;

int _tmain()
{
// TODO: Please replace the sample code below with your own.
Console::WriteLine(S"Hello World");
return 0;
}

The above code is very simple nothing fancy. I continue to get a compile
error however, not errors are display in the output window. What ever the
error is it's not allowing the "exe" to be built.

Does any one see anthing wrong? Where else should I be looking to locate
what's wrong?
thanks

Nov 17 '05 #3

"Larry Bird" <La*******@discussions.microsoft.com> wrote in message
news:26**********************************@microsof t.com...
I generated the project using Application Wizard.
thanks

"Larry Bird" wrote:
I'm attempting to build my first VC++ .net project and I'm unable to get
a
clean compile. Please view code below:

// This is the main project file for VC++ application project
// generated using an Application Wizard.

#include "stdafx.h"

#using <mscorlib.dll>

using namespace System;

int _tmain()
{
// TODO: Please replace the sample code below with your own.
Console::WriteLine(S"Hello World");
return 0;
}

The above code is very simple nothing fancy. I continue to get a compile
error however, not errors are display in the output window. What ever
the
error is it's not allowing the "exe" to be built.

Does any one see anthing wrong? Where else should I be looking to locate
what's wrong?
thanks

What C++ project template are you using?

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Nov 17 '05 #4
I'm trying to build a console application for starters.

Thanks
"Peter van der Goes" wrote:

"Larry Bird" <La*******@discussions.microsoft.com> wrote in message
news:26**********************************@microsof t.com...
I generated the project using Application Wizard.
thanks

"Larry Bird" wrote:
I'm attempting to build my first VC++ .net project and I'm unable to get
a
clean compile. Please view code below:

// This is the main project file for VC++ application project
// generated using an Application Wizard.

#include "stdafx.h"

#using <mscorlib.dll>

using namespace System;

int _tmain()
{
// TODO: Please replace the sample code below with your own.
Console::WriteLine(S"Hello World");
return 0;
}

The above code is very simple nothing fancy. I continue to get a compile
error however, not errors are display in the output window. What ever
the
error is it's not allowing the "exe" to be built.

Does any one see anthing wrong? Where else should I be looking to locate
what's wrong?
thanks

What C++ project template are you using?

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.

Nov 17 '05 #5
I'm trying to use the console template.

Thanks
"Peter van der Goes" wrote:

"Larry Bird" <La*******@discussions.microsoft.com> wrote in message
news:26**********************************@microsof t.com...
I generated the project using Application Wizard.
thanks

"Larry Bird" wrote:
I'm attempting to build my first VC++ .net project and I'm unable to get
a
clean compile. Please view code below:

// This is the main project file for VC++ application project
// generated using an Application Wizard.

#include "stdafx.h"

#using <mscorlib.dll>

using namespace System;

int _tmain()
{
// TODO: Please replace the sample code below with your own.
Console::WriteLine(S"Hello World");
return 0;
}

The above code is very simple nothing fancy. I continue to get a compile
error however, not errors are display in the output window. What ever
the
error is it's not allowing the "exe" to be built.

Does any one see anthing wrong? Where else should I be looking to locate
what's wrong?
thanks

What C++ project template are you using?

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.

Nov 17 '05 #6
Larry Bird wrote:
Here's the out of my compile:


<build log snipped>

Could you post the text from the Output window in the VC++ IDE?
Unfortunately, the build log doesn't show what the errors were - just that
there were errors.

-cd
Nov 17 '05 #7
The output is below:
------ Build started: Project: ASimpleProject, Configuration: Debug Win32
------
Build log was saved at "file://c:\Documents and Settings\louis.AZALEA\My
Documents\Visual Studio
Projects\ASimpleProject\ASimpleProject\Debug\Build Log.htm"
ASimpleProject - 1 error(s), 0 warning(s)
---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped

Thanks

"Carl Daniel [VC++ MVP]" wrote:
Larry Bird wrote:
Here's the out of my compile:


<build log snipped>

Could you post the text from the Output window in the VC++ IDE?
Unfortunately, the build log doesn't show what the errors were - just that
there were errors.

-cd

Nov 17 '05 #8
Larry,
Have you tried rebuilding it twice? I have found that it usually reports
no errors on the second attempt.

John Gabriel

"Larry Bird" wrote:
The output is below:
------ Build started: Project: ASimpleProject, Configuration: Debug Win32
------
Build log was saved at "file://c:\Documents and Settings\louis.AZALEA\My
Documents\Visual Studio
Projects\ASimpleProject\ASimpleProject\Debug\Build Log.htm"
ASimpleProject - 1 error(s), 0 warning(s)
---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped

Thanks

"Carl Daniel [VC++ MVP]" wrote:
Larry Bird wrote:
Here's the out of my compile:


<build log snipped>

Could you post the text from the Output window in the VC++ IDE?
Unfortunately, the build log doesn't show what the errors were - just that
there were errors.

-cd

Nov 17 '05 #9
I've tried building it serveral times and get the same results. I've also
perform a run on it and received the message that the project is out of date.
I click the yes button to build the project and still get the same results.

Does anyone know what might be happing here.

Thanks
"John Gabriel" wrote:
Larry,
Have you tried rebuilding it twice? I have found that it usually reports
no errors on the second attempt.

John Gabriel

"Larry Bird" wrote:
The output is below:
------ Build started: Project: ASimpleProject, Configuration: Debug Win32
------
Build log was saved at "file://c:\Documents and Settings\louis.AZALEA\My
Documents\Visual Studio
Projects\ASimpleProject\ASimpleProject\Debug\Build Log.htm"
ASimpleProject - 1 error(s), 0 warning(s)
---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped

Thanks

"Carl Daniel [VC++ MVP]" wrote:
Larry Bird wrote:
> Here's the out of my compile:

<build log snipped>

Could you post the text from the Output window in the VC++ IDE?
Unfortunately, the build log doesn't show what the errors were - just that
there were errors.

-cd

Nov 17 '05 #10

"Larry Bird" <La*******@discussions.microsoft.com> wrote in message
news:DB**********************************@microsof t.com...
I'm trying to use the console template.

Thanks

OK, I've copied the code in your original post into a Console Application
shell here, and it compiles without error and runs correctly. That
exonerates the code. How long have you had Visual Studio installed (And,
please say which version you have. I use Visual Studio .NET 2003), and have
you tried any other project/template types to see if they work (a simple VB
Windows app, for instance)?
Right now, it looks as if there is something wrong with your installation,
and with only the symptoms reported to go on, I'd suggest a repair install
of Visual Studio.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Nov 17 '05 #11
Yeah I know what your problem is, I'm having the same problem. However, I do
not know what to do since I'm having the same problem. When you create that
app there are two files needed to compile that code, AssemblyInfo.cpp,
stdafx.cpp, and some other ones. One of two of them are not loading,

"Larry Bird" wrote:
I've tried building it serveral times and get the same results. I've also
perform a run on it and received the message that the project is out of date.
I click the yes button to build the project and still get the same results.

Does anyone know what might be happing here.

Thanks
"John Gabriel" wrote:
Larry,
Have you tried rebuilding it twice? I have found that it usually reports
no errors on the second attempt.

John Gabriel

"Larry Bird" wrote:
The output is below:
------ Build started: Project: ASimpleProject, Configuration: Debug Win32
------
Build log was saved at "file://c:\Documents and Settings\louis.AZALEA\My
Documents\Visual Studio
Projects\ASimpleProject\ASimpleProject\Debug\Build Log.htm"
ASimpleProject - 1 error(s), 0 warning(s)
---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped

Thanks

"Carl Daniel [VC++ MVP]" wrote:

> Larry Bird wrote:
> > Here's the out of my compile:
>
> <build log snipped>
>
> Could you post the text from the Output window in the VC++ IDE?
> Unfortunately, the build log doesn't show what the errors were - just that
> there were errors.
>
> -cd
>
>
>

Nov 17 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
3
by: Rob Mayo | last post by:
I am working in an environment with 4 developers. 2 groups of 2 people working on the same server on the same web project with no version control management on the web server. Programmers A & B...
16
by: TB | last post by:
Hi all: If you think that the following comments are absolute amateurish, then please bear with me, or simply skip this thread. A couple of months back I made the decision to initiate a...
1
by: Andy | last post by:
This is driving me to insanity!!! I do not have a lot of experience with IIS which probably is not helping but as far as I can tell I am do things as per the MSDN documentation. I have a...
4
by: Skc | last post by:
We have a developer who has made an application in Visual Studio 2003 and this will not work in our version of Visual Studio 2002. Error message: Solution file loading error: The selected file...
8
by: HELLO $$$ | last post by:
To those who are familiar to MS Visual studio : I have recently Visual Studio 2005. Please can any body tells me , when I write a code: How can I separate the files of such code from the Studio...
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
1
by: bharathreddy | last post by:
This Article gives an introduction to VSTS Team Foundation & fundamental difference between Visual Source Safe (VSS) and VSTS Team Foundation. Team Foundation is a set of tools and technologies...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.