473,657 Members | 2,401 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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::WriteL ine(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 1855
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::WriteL ine(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:\Documen ts and
Settings\louis. AZALEA\My Documents\Visua l Studio
Projects\ASimpl eProject\ASimpl eProject\Debug\ RSP000005.rsp" with contents
[
/Od /AI "C:\Documen ts and Settings\louis. AZALEA\My Documents\Visua l Studio
Projects\ASimpl eProject\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\Mic rosoft.NET\Fram ework\v1.1.4322 \mscorlib.dll"
/FU "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \System.dll"
/FU "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \System.Data.dl l"
".\AssemblyInfo .cpp"
".\ASimpleProje ct.cpp"
]
Creating command line "cl.exe @"c:\Documen ts and Settings\louis. AZALEA\My
Documents\Visua l Studio
Projects\ASimpl eProject\ASimpl eProject\Debug\ RSP000005.rsp" /nologo"
Creating temporary file "c:\Documen ts and Settings\louis. AZALEA\My
Documents\Visua l Studio
Projects\ASimpl eProject\ASimpl eProject\Debug\ RSP000006.rsp" with contents
[
/Od /AI "C:\Documen ts and Settings\louis. AZALEA\My Documents\Visua l Studio
Projects\ASimpl eProject\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\Mic rosoft.NET\Fram ework\v1.1.4322 \mscorlib.dll"
/FU "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \System.dll"
/FU "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \System.Data.dl l"
".\stdafx.c pp"
]
Creating command line "cl.exe @"c:\Documen ts and Settings\louis. AZALEA\My
Documents\Visua l Studio
Projects\ASimpl eProject\ASimpl eProject\Debug\ RSP000006.rsp" /nologo"
Output Window Results Build log was saved at
"file://c:\Documents and Settings\louis. AZALEA\My Documents\Visua l Studio
Projects\ASimpl eProject\ASimpl eProject\Debug\ BuildLog.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::WriteL ine(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*******@disc ussions.microso ft.com> wrote in message
news:26******** *************** ***********@mic rosoft.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::WriteL ine(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*******@disc ussions.microso ft.com> wrote in message
news:26******** *************** ***********@mic rosoft.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::WriteL ine(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*******@disc ussions.microso ft.com> wrote in message
news:26******** *************** ***********@mic rosoft.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::WriteL ine(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\Visua l Studio
Projects\ASimpl eProject\ASimpl eProject\Debug\ BuildLog.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\Visua l Studio
Projects\ASimpl eProject\ASimpl eProject\Debug\ BuildLog.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\Visua l Studio
Projects\ASimpl eProject\ASimpl eProject\Debug\ BuildLog.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

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

Similar topics

0
2585
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: OSTDLL, Configuration: Debug Win32 ------ Compiling... StdAfx.cpp
0
774
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: OSTDLL, Configuration: Debug Win32 ------ Compiling... StdAfx.cpp
3
2291
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 servername/project1 Programmers C & D servername/project2 All programmers have solutions that have their respective web projects, accessed over file share. Programmers A & B so far are fine. Programmers C & D have a problem.
16
2581
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 gradual upgrade of my web programming skills from Classic ASP / VBS to ASP.NET / VB.NET. While the study of the language differences and all the new features in .NET has so far not been a traumatic experience, I am a bit shell-schocked after
1
7085
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 solution in Source Safe that I want to add some web service projects to. I create a folder under my solution folder for the new web service project. I create a virtual directory using IIS and accept the default settings for security etc.
4
2387
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 is not a valid Visual Studio Solution file. When we try to load a project file, we get: Unable to read the project file. The project was created with a newer
8
2203
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 program and operate it away from mother program (Studio). Thank you. =============================
1
3591
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 some files and work on it. Let say, I want add new page to web project named websiteOrder.sln, i will open websiteOrder.sln in my local computer, connected to websiteOrder.sln located in Visual Source Safe 6.0(source safe located in another...
1
19833
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 that enable a team to collaborate and coordinate a project (software or non software projects). The team collaboration is achieved by several tools and features available as part of "Team Foundation". Team Foundation Server The Team...
0
8829
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8734
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8508
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7341
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5633
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4164
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2733
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.