Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's with the "Afx" in StdAfx.h?

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

like image 618
Qwertie Avatar asked Dec 24 '08 16:12

Qwertie


People also ask

What does Stdafx stand for?

h (named stdafx. h before Visual Studio 2017) is a file generated by the Microsoft Visual Studio IDE wizard, that describes both standard system and project specific include files that are used frequently but hardly ever change. The afx in stdafx. h stands for application framework extensions.


2 Answers

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.

like image 161
Shog9 Avatar answered Oct 11 '22 18:10

Shog9


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)."

like image 43
Henk Avatar answered Oct 11 '22 17:10

Henk