is not a class or namespace name
来源:百度文库 编辑:神马文学网 时间:2024/07/05 12:02:35
出现 is not a class or namespace name提示,是因为#include "stdafx.h"必须放在开始的位置。
关于stdafx.h 的作用:
所谓头文件预编译,就是把一个工程(Project)中使用的一些MFC 标准头文件(如Windows.H、Afxwin.H)预
先编译,以后该工程编译时,不再编译这部分头文件,仅仅使用预编译的结果。这样可以加快编译速度,
节省时间。
预编译头文件通过编译stdafx.cpp 生成,以工程名命名,由于预编译的头文件的后缀是“pch”,所以编
译结果文件是projectname.pch。
编译器通过一个头文件stdafx.h 来使用预编译头文件。stdafx.h 这个头文件名是可以在project 的编译
设置里指定的。编译器认为,所有在指令#include "stdafx.h"前的代码都是预编译的,它跳过#include
"stdafx. h"指令,使用projectname.pch 编译这条指令之后的所有代码。
因此,所有的CPP 实现文件第一条语句都是:#include "stdafx.h"。
关于stdafx.h 的作用:
所谓头文件预编译,就是把一个工程(Project)中使用的一些MFC 标准头文件(如Windows.H、Afxwin.H)预
先编译,以后该工程编译时,不再编译这部分头文件,仅仅使用预编译的结果。这样可以加快编译速度,
节省时间。
预编译头文件通过编译stdafx.cpp 生成,以工程名命名,由于预编译的头文件的后缀是“pch”,所以编
译结果文件是projectname.pch。
编译器通过一个头文件stdafx.h 来使用预编译头文件。stdafx.h 这个头文件名是可以在project 的编译
设置里指定的。编译器认为,所有在指令#include "stdafx.h"前的代码都是预编译的,它跳过#include
"stdafx. h"指令,使用projectname.pch 编译这条指令之后的所有代码。
因此,所有的CPP 实现文件第一条语句都是:#include "stdafx.h"。
is not a class or namespace name
"My name is Khan and I’m not a terrorist.” - ...
"My name is Khan and I’m not a terrorist.” - ...
Is a Training Class or Family Teacher Necessa...
Is a Training Class or Family Teacher Necessa...2
When is a room not a room?
A Coup is Not a Coup. A Not-Coup is a Coup.
Date Experience - Dating Advice and Stories - To Orgasm or not to Orgasm. That is the question.
To be, or not to be - that is the question (转)
Windows could not start because the following file is missing or corrupt:
Implementing a Driver Namespace
止步 or not
True or not true
Calling a DLL C++ function or class from a VC++ application
Calling a DLL C++ function or class from a VC++ application
Life Is Not Perfect
struts2配置中Action的name 和package的name和namespace是什么作用
struts2配置中Action的name 和package的name和namespace是什么作用
活在当下..._My name is Peter
is not in sudoer file
Brazil Becomes Middle Class But Not Bourgeois
TCS | Is Intelligent Design a Bad scientific theory or non-scientific theory
No matter the ending is perfect or not, you cannot disappear from my world. 我的世界不允许你的消失,不管结局是否完美.
Family cars,to be good or not?