Many global functions start with the prefix "Afx" — but some, such as the dialog data exchange (DDX) functions and many of the database functions, deviate from this convention. All global variables start with "afx" as a prefix. Macros do not start with any particular prefix, but they are written all in uppercase
是classwizard自动生成的,是vc内部识别的标志,所果删除,并不影响程序的运行,只是vc无法再用classwizard进行快捷维护了。还有AFX是缩写,深入浅出中讲到是MFC小组的名字,代理application framword X(其中x即为未知或神密的意思//差不多吧,看到很久了;))而你去看看AFX这个宏代表什么,最后在MFC的源代码中会发现,什么都不是定义为空。
#define afx_msg // intentional placeholder
怀疑又是为了将去打基础。一家之言,如有不对,请指教。
2.AFX小组通过大量工作,建立了新的应用程序框架,这个概念体系中包装了Windows API,提供了一整套用于Windows开发的类,这一应用程序框架的实现就是mfc的诞生,至今AFX这个词还可以在mfc的头文件中找到,也许afx小组想以此留作纪念吧。