【发布时间】:2013-01-07 20:13:27
【问题描述】:
我试图在我的 cpp 文件中包含 CString,但如果我包含 afxinet.h,则会收到此错误
“windows.h 已经包含 afxv_w32.h”
这些是我的头文件:
#include stdafx.h
#include shlwapi.h
#include Tlhelp32.h
#include hooks.h
#include stdio.h
#include common1.h
#include SafeLogger.h
#include io.h
#include tinyxml.h
#include winsock.h>
#pragma comment(lib, "Ws2_32.lib")
#include afxinet.h
我没有在堆栈中包含要在此处显示的 gaurds。
如何解决这个问题并在我的文件中包含 CString
【问题讨论】:
-
听起来好像没有包含应该包含的保护,或者您的包含顺序不正确。
-
我认为没有 'afx.h' 就无法使用 'afxinet.h'
标签: c++ visual-c++