第一个Visual Studio C ++ .net Project [英] First Visual Studio C++.net Project
问题描述
我正在尝试构建我的第一个VC ++ .net项目,我无法得到一个
清理编译。请查看以下代码:
//这是VC ++应用程序项目的主项目文件
//使用应用程序向导生成。
< br $> b $ b #include" stdafx.h"
#using< mscorlib.dll>
使用命名空间系统;
int _tmain()
{
// TODO:请用您自己的代码替换下面的示例代码。 />
Console :: WriteLine(S" Hello World");
返回0;
}
上面的代码很简单,没什么特别的。我继续得到编译
错误,但输出窗口中没有显示错误。
错误是什么?它不允许exe错误要建造。
有没有人看到错误?我应该在哪里寻找
什么是错的?
谢谢
< blockquote>我使用应用程序向导生成了项目。
感谢
" Larry Bird"写道:
我正在尝试构建我的第一个VC ++ .net项目,我无法得到一个干净的编译。请查看以下代码:
//这是VC ++应用程序项目的主项目文件
//使用应用程序向导生成。
#include" stdafx .h"
#using< mscorlib.dll>
使用命名空间系统;
int _tmain()
{
// TODO:请用您自己的代码替换下面的示例代码。
Console :: WriteLine(S" Hello World");
返回0;
}
错误,但输出窗口中没有显示错误。
错误是什么?它不允许exe错误。要建造。
有人看到了错误吗?我还应该在哪里寻找
什么是错的?
感谢
这里是'我的编译:
构建日志-------构建开始:项目:ASimpleProject,
配置:调试| Win32 --- ----
命令行创建临时文件c:\Documents和
设置\ louis.AZALEA \我的文件\视觉工作室
Projects\AmplempleProject\ASimpleProject\Debug \RSP00 0005.rsp"内容
[
/ Od / AI" C:\Documents and Settings\louis.AZALEA \ Myy Documents\Visual Studio
Projects\AmplempleProject\Debug" / DWIN32 / D_DEBUG / D_MBCS / FD / EHsc
/ MTd / GS /Yu" stdafx.h" /Fp"Debug/ASimpleProject.pch" / FoDebug /
/Fd"Debug/vc70.pdb" / W3 / c / Zi / clr / TP / FU
" C:\ WINDOWS \ Mysrosoft.NET \ Framework\v1.1.4322 \ msco rlib.dll"
/ FU" C:\ WINDOWS \ Mysrosoft.NET \ Framework \v1.1.4322 \Syst em.dll"
/ FU" C:\ WINDOWS\Microsoft.NET\Framework\v1.1.4322 \Syst em.Data.dll"
"。\AssemblyInfo.cpp"
" .\ApmpleProject.cpp"
]
创建命令行cl.exe @c:\ Document and Settings \ louis.AZALEA \ Myy
Documents\Visual Studio
Projects\AmplempleProject\ASlmpleProject\Debug \ RSP00 0005.rsp" / nologo"
创建临时文件" c:\Documents and Settings \ louis.AZALEA \我/
Documents\Visual Studio
Projects\AmplempleProject \ASimpleProject \Debug \RSP00 0006.rsp"内容
[
/ Od / AI" C:\Documents and Settings\louis.AZALEA \ Myy Documents\Visual Studio
Projects\AmplempleProject\Debug" / DWIN32 / D_DEBUG / D_MBCS / FD / EHsc
/ MTd / GS /Yc" stdafx.h" /Fp"Debug/ASimpleProject.pch" / FoDebug /
/Fd"Debug/vc70.pdb" / W3 / c / Zi / clr / TP / FU
" C:\ WINDOWS \ Mysrosoft.NET \ Framework\v1.1.4322 \ msco rlib.dll"
/ FU" C:\ WINDOWS \ Mysrosoft.NET \ Framework \v1.1.4322 \Syst em.dll"
/ FU" C:\ WINDOWS\Microsoft.NET\Framework\v1.1.4322 \Syst em.Data.dll"
" .\stdafx.cpp"
]
创建命令行cl.exe @c:\ Document and Settings \ louis.AZALEA \ My
Documents\Visual Studio
Projects\AmplempleProject\ASlmpleProject\Debug \RSP00 0006.rsp" / nologo"
输出窗口结果构建日志保存在
" file:// c:\Documents and Settings \ louis.AZALEA \ My Documents \\ \\ Visual Studio
Projects\AmplempleProject\AmplempleProject\Debug \ Build Log.htm"
ASimpleProject - 1个错误,0个警告
谢谢
" Larry Bird"写道:
我正在尝试构建我的第一个VC ++ .net项目,我无法得到一个干净的编译。请查看以下代码:
//这是VC ++应用程序项目的主项目文件
//使用应用程序向导生成。
#include" stdafx .h"
#using< mscorlib.dll>
使用命名空间系统;
int _tmain()
{
// TODO:请用您自己的代码替换下面的示例代码。
Console :: WriteLine(S" Hello World");
返回0;
}
错误,但输出窗口中没有显示错误。
错误是什么?它不允许exe错误。要建造。
有人看到了错误吗?我还应该在哪里寻找
出了什么问题?
感谢
Larry Bird <拉******* @ discussions.microsoft.com>在消息中写道
news:26 ********************************** @ microsof t.com ...我使用应用程序向导生成了项目。
感谢
Larry Bird写道:
我正在尝试构建我的第一个VC ++ .net项目,我无法得到一个干净的编译。请查看以下代码:
//这是VC ++应用程序项目的主项目文件
//使用应用程序向导生成。
#include" stdafx .h"
#using< mscorlib.dll>
使用命名空间系统;
int _tmain()
{
// TODO:请用您自己的代码替换下面的示例代码。
Console :: WriteLine(S" Hello World");
返回0;
}
错误,但输出窗口中没有显示错误。什么呢
错误是它不允许exe错误。要建造。
有人看到了错误吗?我还应该在哪里寻找
什么是错的?
感谢
你使用什么C ++项目模板? ?
-
彼得[MVP视觉开发者]
所有行业的杰克,无人掌握。
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
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
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
"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.
这篇关于第一个Visual Studio C ++ .net Project的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!