VC里面利用VBScript Regular Expression 5.5 的COM接口问题

rick1126 2003-04-23 01:28:42
我用VC建立一个控制台类型的项目, 作为一个Service, 功能就是后台定期查询文件, 为此我需要使用正则表达式, 我利用OLEViewer找到了VBScript里面的Regular Expression5.5, 导出里面的定义称为IDL文件, 利用MIDL编译得到了TLB文件, 在我的项目里面#import, 编译的时候提示tlb文件引用的comutil.h里面有问题, 因为我的项目是控制台类型不知道对于这样的ATL是不是需要添加什么宏定义???

错误信息如下:

:\dvp\msvs\vc98\include\comutil.h(101) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Error executing cl.exe.

对应行内容

...
friend _bstr_t operator+(const char* s1, const _bstr_t& s2) throw(_com_error);
friend _bstr_t operator+(const wchar_t* s1, const _bstr_t& s2) throw(_com_error);
...

...全文
66 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zzyx 2003-04-24
  • 打赏
  • 举报
回复
没有用过。
“friend _bstr_t operator+(const char* s1, const _bstr_t& s2) throw(_com_error);”

但遇到过类似的问题,也是友元操作符重载时候编译失败!

更新vc到sp5就解决了。

3,248

社区成员

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

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