M $和C ++能力的邪恶 [英] Evils of M$ and C++ability

查看:82
本文介绍了M $和C ++能力的邪恶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昂贵的MS VC ++已经破坏了我的微软,迫使我去购买廉价而开朗的免费快递路线,至少在本机Vista

编译器出来之前。

无论如何它有一个叫.net托管代码的东西。当您尝试添加C文件

时,它会抱怨安全违规。将文件更改为C ++文件,添加一个

#include" stdafx.h"并且,嘿presto,运行代码。


道德是,你永远不知道什么时候你可能需要施放你的mallocs()。

所有有趣的部分我的下一个程序将使用ANSI C,除了

位将在用C编写的Lisp解释器上运行,但我需要

将它连接到各种窗口系统,其中Windows将是一个。


-

免费游戏和编程好东西。
http://www.personal.leeds.ac.uk/~bgy1mm

My expensive MS VC++ has been broken my Microsoft, obliging me to go the
cheap and cheerful freebie Express route, at least until a native Vista
compiler comes out.
Anyway it has a thing called .net managed code. When you try to add a C file
it complains about security vioations. Change the file to a C++ file, add an
#include "stdafx.h" and, hey presto, running code.

The moral is, you never know when you might have to cast your mallocs().
All the interesting parts of my next program will be in ANSI C, except the
bits that shall run on a Lisp intepreter written in C, but I will need to
hook it up to various windowing systems, of which Windows will be one.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

推荐答案

4月6日下午4:08,Malcolm McLean < regniz ... @ btinternet.comwrote:
On Apr 6, 4:08 pm, "Malcolm McLean" <regniz...@btinternet.comwrote:

我的昂贵的MS VC ++已经破坏了我的微软,让我去了

廉价而开朗的免费快递路线,至少在本机Vista

编译器出来之前。

无论如何它有一个叫做.net托管代码的东西。当您尝试添加C文件

时,它会抱怨安全违规。将文件更改为C ++文件,添加一个

#include" stdafx.h"并且,嘿presto,运行代码。
My expensive MS VC++ has been broken my Microsoft, obliging me to go the
cheap and cheerful freebie Express route, at least until a native Vista
compiler comes out.
Anyway it has a thing called .net managed code. When you try to add a C file
it complains about security vioations. Change the file to a C++ file, add an
#include "stdafx.h" and, hey presto, running code.



只需更改项目类型。

Just change the project type.


道德是,您永远不知道何时可能需要转换你的mallocs()。

我的下一个程序的所有有趣的部分都是ANSI C,除了在用C编写的Lisp解释器上运行的

位,但我需要将b $ b挂钩到各种窗口系统,其中Windows将是一个。
The moral is, you never know when you might have to cast your mallocs().
All the interesting parts of my next program will be in ANSI C, except the
bits that shall run on a Lisp intepreter written in C, but I will need to
hook it up to various windowing systems, of which Windows will be one.



< OT-ASIDE>

我会承认警告错误(除非你禁止警告

4996)关于fopen()之类的事情已被弃用! fread()已被弃用了
!但是真的很烦人。


托管代码的最终目标总体来说是件好事。它的目的是使b
成为一种更安全的语言。如果你不想使用它,你可以使用非托管代码。

< / OT-ASIDE>

<OT-ASIDE>
I will admit that the warning errors (unless you suppress warning
4996) about things like "fopen() has been deprecated! fread() has been
deprecated!" are truly annoying, though.

The eventual aim of managed code is a good thing overall. It aims to
make C a much safer language. And if you don''t want to use it, you
can use unmanaged code.
</OT-ASIDE>


user923005写道,07/04/07 08:20:
user923005 wrote, On 07/04/07 08:20:

4月6日下午4:08, Malcolm McLean < regniz ... @ btinternet.comwrote:
On Apr 6, 4:08 pm, "Malcolm McLean" <regniz...@btinternet.comwrote:

>我的昂贵的MS VC ++已经破坏了我的微软,迫使我去了便宜的快乐的免费快递路线,至少在本机Vista
编译器出来之前。
无论如何它有一个叫做.net托管代码的东西。当您尝试添加C文件时,它会抱怨安全违规。将文件更改为C ++文件,添加
#include" stdafx.h"并且,嘿presto,运行代码。
>My expensive MS VC++ has been broken my Microsoft, obliging me to go the
cheap and cheerful freebie Express route, at least until a native Vista
compiler comes out.
Anyway it has a thing called .net managed code. When you try to add a C file
it complains about security vioations. Change the file to a C++ file, add an
#include "stdafx.h" and, hey presto, running code.



只需更改项目类型即可。


Just change the project type.



并确保所有其他选项都设置正确。

And make sure all the other options are set correctly.


>道德是,你永远不知道何时可能需要施放你的mallocs()。
>The moral is, you never know when you might have to cast your mallocs().



< snip>


不,道德是学习如何正确驾驶你的工具。

-

Flash Gordon

<snip>

No, the moral is learn how to drive your tools properly.
--
Flash Gordon


Malcolm McLean说:
Malcolm McLean said:

我的昂贵的MS VC ++已经破坏了我的微软,迫使我去廉价和开朗的免费快递路线,至少直到本机

Vista编译器来out。

无论如何它有一个叫.net托管代码的东西。当您尝试添加

C文件时,它会抱怨安全违规。将文件更改为C ++

文件,添加

#include" stdafx.h"并且,嘿presto,运行代码。
My expensive MS VC++ has been broken my Microsoft, obliging me to go
the cheap and cheerful freebie Express route, at least until a native
Vista compiler comes out.
Anyway it has a thing called .net managed code. When you try to add a
C file it complains about security vioations. Change the file to a C++
file, add an
#include "stdafx.h" and, hey presto, running code.



这是错误的解决方案。正确的解决方案是丢弃破碎的

实现并找到有用的东西。

That''s the wrong solution. The right solution is to discard the broken
implementation and find something that works.


道德是,你永远不知道什么时候你可能有施展你的

mallocs()。
The moral is, you never know when you might have to cast your
mallocs().



当地狱冻结时。


-

Richard Heathfield

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

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

When hell freezes over.

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


这篇关于M $和C ++能力的邪恶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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