“Afx”是怎么回事? 在 StdAfx.h 中?

发布于 2024-07-10 23:36:07 字数 44 浏览 7 评论 0原文

我只是好奇 Afx 代表什么。 那么 FxCop 中的 Fx 又如何呢?

I'm just curious what Afx stands for. And what about Fx in FxCop?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

凹づ凸ル 2024-07-17 23:36:08

在 FxCop 的框架中。

In FxCop its Framework.

梦回旧景 2024-07-17 23:36:07

来自维基百科

MFC 的一个有趣的怪癖是
许多人使用“Afx”作为前缀
函数、宏和标准
预编译头名称“stdafx.h”。
在早期开发过程中,变成了
MFC被称为“应用程序框架
扩展名”并缩写为“Afx”。
名称 微软基础课程
(MFC)采用得太晚了
发布周期来改变这些
参考文献。

旧的 Stingray MFC 常见问题解答(在他们的网站上找不到,链接是旧版本):

一开始,微软创建了
一个名为 AFX 团体的团体
(代表(A)申请
(F)框架(X))。

[...]

AFX 小组实际上是
负责两件事:MFC
库和 IDE 的支持
MFC(即资源编辑器和
巫师)。 AFX 名称是
1994 年 4 月下降,该集团的
成员只是成为较小规模的一部分
Visual C++ 小组内的团队。
这些较小的团队之一就是今天的
MFC 团队。

From Wikipedia:

One interesting quirk of MFC is the
use of "Afx" as the prefix for many
functions, macros and the standard
precompiled header name "stdafx.h".
During early development what became
MFC was called "Application Framework
Extensions" and abbreviated "Afx". The
name Microsoft Foundation Classes
(MFC) was adopted too late in the
release cycle to change these
references.

The old Stingray MFC FAQ (no longer found on their website, link is to ancient version):

In the beginning, Microsoft created
a group called the AFX group
(stands for (A)pplication
(F)ramework(X)).

[...]

The AFX group was actually
responsible for two things: the MFC
library and the IDE's support for
MFC (namely, the resource editor and
the wizards). The AFX name was
dropped in April 1994, and the group's
members simply became part of smaller
teams within the Visual C++ group.
One of those smaller teams is today's
MFC team.

内心激荡 2024-07-17 23:36:07

http://en.wikipedia.org/wiki/Stdafx.h

“AFX stdafx.h 代表应用程序框架扩展,AFX 是 Microsoft 基础类 (MFC) 的原始缩写。”

http://en.wikipedia.org/wiki/Stdafx.h

"The AFX in stdafx.h stands for Application Framework eXtensions. AFX was the original abbreviation for the Microsoft Foundation Classes (MFC)."

源来凯始玺欢你 2024-07-17 23:36:07

仅供参考,gstercken 的

(强调我的)

MFC 的第一个版本于 1989 年开始由 Microsoft 的一个应用程序框架技术开发小组(称为 AFX 小组)开发。
人们普遍认为,AFX 代表“应用程序框架扩展”。 然而,根据 George Shepherd 和 Scot Wingo 的说法,传说是这样的:“AF”本身听起来不太好,他们添加了“X”以获得三个字母的缩写。 X 并没有什么实际意义。

有什么意义吗? 嗯,您会遇到 Afx 作为 MFC 中某些函数和常量的前缀。 它的意义纯粹是历史性的 - 它向我们展示了在 1992 年以 MFC 1.0 的名称发布之前,他们如何在内部调用该框架。

Just FYI, gstercken's answer in codeguru.com mentions about "x" in Afx.

(emphasis mine)

The first version of MFC has started being developed in 1989 by a group at Microsoft known as the application framework technology development goup - known as the AFX group.
According to a widespread belief, AFX stands for "Application Framework eXtension". According to George Shepherd and Scot Wingo, however, the legend goes like this: "AF" didn't sound so great by itself, to they added "X" to get a three-letter acronym. The X doesn't really mean anything.

It's significance? Well, you will encounter Afx as a prefix for some functions and constants in MFC. It's significance is purely historical - it shows us how they called the framework internally, before it shipped under the name MFC 1.0 in 1992.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文