microsoft visual c ++ [英] microsoft visual c++

查看:126
本文介绍了microsoft visual c ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有谁知道如何使用microsoft visual c ++启动新的C项目?


我已经创建了一个文件,但是Tools-Run是活跃的。


如何让它活跃?

解决方案

< blockquote> Build-compile也很活跃:-(


我创建了新项目并将我的文件添加到它,但它没有帮助。

paz?ú:





有人知道如何使用microsoft visual c ++启动新的C项目吗? />

我已经创建了一个文件,但是Tools-Run是活跃的。


如何让它生效?


paz说:





有谁知道怎么样使用microsoft visual c ++启动新的C项目?



这个问题在comp.lang.c中不是热门话题但是我个人认为这是
应该是.K& R对此事有这样的说法:


这是一个很大的障碍;跳过它你必须能够在某处创建

程序文本,成功编译它,加载它,运行它,并找到你的输出去的地方
。掌握了这些机械细节,

其他一切都比较容易。


Visual Studio的细节当然与C本身无关,

通常我会建议您找到一个Microsoft站点。但坦率地说,如果我这样做,你可能最终会变成一个微观,我不希望任何人都能获得这个价值。


所以 - 这是在Visual Basic中启动新C项目的快速指南的URL

Studio(涵盖版本5和6)。如果你有一个早期版本或更高版本的Visual Studio的
,基本程序通常大致相同,但

东西在不同的地方,这就是全部。

http:// www。 cpax.org.uk/prg/windows/vcprj.php


既然我已经说了这么多,我必须向我的同事道歉
这个组的
贡献者回答了一个非主题问题,其中

答案不是重定向到另一个组。但是,我希望他们能够反思paz的可能性。有一天可能会成为ISO C编程的世界级专家,因为没有被发送给微软集团......
$ br />
-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上述域名中, - www。


Richard Heathfield写道:


>

paz说:





有人知道如何使用microsoft visual c ++启动新的C项目

吗?


>
http://www.cpax.org.uk/prg/windows/vcprj.php


现在我已经说了所有这些,我必须向我的同事常见的

贡献者道歉,以回复

与一个非主题的问题/>
回答不是重定向到另一个组。



我的方式不同:


我打开任何.c或.h文件

碰巧已经在bin目录中,

这是我的编译器查找源代码的地方。


我做了一个另存为... "这是文件

下的一个选项,它以新名称复制文件,例如new.c


我重写文件,然后在Build下

我选择Compile new.c。


此时编译器会询问我是否要创建

新工作区,我回复是。


然后在项目下,我点击设置

并且在C / C ++下选项卡,我将警告级别提高到4.


然后在文件下。我选择保存工作区。


当我想将额外的c文件添加到项目中时,

然后当项目仍然打开时,

我打开文件下的其他c文件。


我转到构建按钮再次,当我尝试编译额外的

C文件时,编译器给我选项将项目

添加到项目中,然后选择是。


我打开程序头文件进行查看,

但我从不将它们添加到项目中。


。 ......这就是我编写和编译e_driver.c的方式
http://www.mindspring.com/~pfilandr/C/e_driver/

-

pete


Hi,

Does anybody know how to start new C project with microsoft visual c++?

I''ve created a file, but Tools-Run is inActive.

How can I make it Active?

解决方案

Build-compile is inActive too :-(

I created new project and add my file to it, but it didn''t help.
paz ?úá:

Hi,

Does anybody know how to start new C project with microsoft visual c++?

I''ve created a file, but Tools-Run is inActive.

How can I make it Active?


paz said:

Hi,

Does anybody know how to start new C project with microsoft visual c++?

This question is not topical in comp.lang.c BUT personally, I think it
should be. K&R have this to say on the matter:

"This is the big hurdle; to leap over it you have to be able to create the
program text somewhere, compile it successfully, load it, run it, and find
out where your output went. With these mechanical details mastered,
everything else is comparatively easy."

The niceties of Visual Studio are of course nothing to do with C itself, and
so normally I''d recommend that you find a Microsoft site. But frankly, if I
do that, you''ll probably end up becoming a Microsofty, and I wouldn''t wish
that on anyone.

So - here is the URL of a quick guide to starting a new C project in Visual
Studio (covers versions 5 and 6). If you have an earlier or later version
of Visual Studio, the basic procedure is typically much the same, but
things are in different places, that''s all.

http://www.cpax.org.uk/prg/windows/vcprj.php

Now that I''ve said all that, I must apologise to my fellow regular
contributors to this group for replying to an off-topic question with an
answer that is not a redirection to another group. I hope, however, that
they will reflect upon the possibility that "paz" may one day become an
world-class expert in ISO C programming as a result of not being sent off
to a Microsoft group...

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.


Richard Heathfield wrote:

>
paz said:

Hi,

Does anybody know how to start new C project
with microsoft visual c++?

>
http://www.cpax.org.uk/prg/windows/vcprj.php

Now that I''ve said all that, I must apologise to my fellow regular
contributors to this group for replying
to an off-topic question with an
answer that is not a redirection to another group.

I do it differently:

I open any .c or .h file
which happens to already be in the bin directory,
which is where my compiler looks for source code.

I do a "Save as..." which is an option under "File"
and which copies the file under a new name like "new.c"

I rewrite the file and then under "Build"
I select "Compile new.c".

At this point the compiler asks me if I want to create a
new workspace and I reply "Yes".

Then under "Project", I click "Settings"
and under the "C/C++" tab, I raise the warning level to 4.

Then under "File" I select "Save Workspace".

When I want to add additional c files to the project,
then while the project is still open,
I open additional c files under "File".

I go to "Build" again and when I try to compile the additional
C files, the compiler gives me the option to add the file
to the project and I select "Yes".

I open the programs header files for viewing,
but I never add them to the project.

.... and that''s how I wrote and compiled e_driver.c

http://www.mindspring.com/~pfilandr/C/e_driver/

--
pete


这篇关于microsoft visual c ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆