1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetCrackUrlA@16
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetCanonicalizeUrlA@16
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetQueryOptionA@16
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetSetOptionExA@20
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetSetCookieA@12
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetGetCookieA@16
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetQueryDataAvailable@16
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpDeleteFileA@8
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpRenameFileA@12
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpCreateDirectoryA@8
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpRemoveDirectoryA@8
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpSetCurrentDirectoryA@8
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpGetCurrentDirectoryA@12
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpPutFileA@20
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpGetFileA@28
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetErrorDlg@20
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__HttpAddRequestHeadersA@16
上面提的nafxcw.lib,根本没用到呀,在动态DLL编译正常,转为静态时出错
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetCanonicalizeUrlA@16
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetQueryOptionA@16
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetSetOptionExA@20
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetSetCookieA@12
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetGetCookieA@16
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetQueryDataAvailable@16
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpDeleteFileA@8
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpRenameFileA@12
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpCreateDirectoryA@8
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpRemoveDirectoryA@8
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpSetCurrentDirectoryA@8
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpGetCurrentDirectoryA@12
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpPutFileA@20
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__FtpGetFileA@28
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__InternetErrorDlg@20
1>nafxcw.lib(inet.obj) : error LNK2001: 无法解析的外部符号 __imp__HttpAddRequestHeadersA@16
上面提的nafxcw.lib,根本没用到呀,在动态DLL编译正常,转为静态时出错
解决方案 »
- windows程序设计第五版14章的sketch程序疑问
- MFC出现syntax error : identifier 'Exception'错误提示
- 如何实现把不通的软件切换到当前窗口,并模拟人工进行一些输入!
- 按钮响应
- vc使用CHtmlEditor CHtmlEdit打开网页后 如何 搜索 查找 关键 字 词 跳到查找到的当前位置的问题 如何实现??
- 求思路:用MFC开发Office插件
- 求助:怎样更新主框架窗口
- 窗口拆分问题!!
- 请问关于ip包头里的源地址和目标地址的问题
- 请问窗口中前景背景的概念是图形卡的物理概念还是Windows定义的逻辑概念?
- 小弟在此求各位大神帮助
- 非模态对话框不运行PreTranslateMessage??????????????
Declared in Wininet.h.
Library
Use Wininet.lib.
这个lib加了还是一样,你说的工程设置是什么?,我就改变了运行库为MT,在静态库使用就出现这个错误
{
CInternetSession session;
CHttpFile *file = NULL;
CString strHtml = "" ; //存放网页数据
try{
file = (CHttpFile*)session.OpenURL(strURL);
}
catch(CInternetException * m_pException)
{
file = NULL;
m_pException->m_dwError;
m_pException->Delete();
session.Close();
}
CString strLine;
if(file != NULL)
{
while(file->ReadString(strLine)!= NULL)
{
strHtml += strLine;
}
}
session.Close();
file->Close();
delete file;
file = NULL;
return strHtml;
}添加一段代码,就是这段代码出了问题,动态编译下可以,静态就出错。查了很多人说是CInternetSession 的问题,但是就是没有解决办法