在DuiLib中使用MFC类

比如,想在DuiLib里使用MFC中的CInternetSession

首先,将Project Properties->General->Use of MFC设置为Use MFC in a Shared DLL

然后包含头文件afxinet.h,必须在#include <UIlib.h>之前#include <afxinet.h>

猜你喜欢

转载自www.cnblogs.com/buyishi/p/10425154.html