关于ASP组件的问题!

comet 2001-12-03 11:30:02
我在使用IRequest,IResponse时已经
#include "asptlb.h"
但编译时出现以下错误:
error LNK2001: unresolved external symbol _IID_IRequest
error LNK2001: unresolved external symbol _IID_IResponse

是不是还要包含什么库文件?
...全文
86 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
comet 2001-12-04
  • 打赏
  • 举报
回复
噢!太感谢 karma(无为) 了!
给分!
karma 2001-12-04
  • 打赏
  • 举报
回复
this is from MSDN:

Please note that if you are developing with Visual Studio 5.0 you may need to modify your build environment before using ObjectContext to access the ASP built-in objects. For example, you may need to copy the Component Services headers and library files. You may also need to copy asptlb.h from inetpub\iissamples\sdk\include to your development tool's include directory. Finally, the .cpp file that contains the #include command for asptlb.h must also contain #include <initguid.h> and the file must be linked with mtxguid.lib.

karma 2001-12-04
  • 打赏
  • 举报
回复
did you include <initguid.h>?

#include <initguid.h>
#include "asptlb.h"
#include "mtx.h"
comet 2001-12-04
  • 打赏
  • 举报
回复
都试过了,问题依旧!

是不是我的VC的版本问题?
karma 2001-12-04
  • 打赏
  • 举报
回复
try
mtxih.lib or
mtx.lib
comet 2001-12-03
  • 打赏
  • 举报
回复
改库已包含了,还是一样!
karma 2001-12-03
  • 打赏
  • 举报
回复
add link to
mtxguid.lib

3,245

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧