VC里面利用VBScript Regular Expression 5.5 的COM接口问题
我用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);
...