英语翻译求解!The "ambiguous symbol" error occurs when a smart pointer interface definition such as IXMLDOMDocumentPtr is defined in both the MSXML2 namespace (through #import) and the global namespace (through Msxml.h), so that the symbol is am

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 13:46:44
英语翻译求解!The

英语翻译求解!The "ambiguous symbol" error occurs when a smart pointer interface definition such as IXMLDOMDocumentPtr is defined in both the MSXML2 namespace (through #import) and the global namespace (through Msxml.h), so that the symbol is am
英语翻译求解!
The "ambiguous symbol" error occurs when a smart pointer interface definition such as IXMLDOMDocumentPtr is defined in both the MSXML2 namespace (through #import) and the global namespace (through Msxml.h), so that the symbol is ambiguous. When the compiler resolves the interfaces, the compiler looks first in Msxml.h, which has different signatures than those that #import generates.

英语翻译求解!The "ambiguous symbol" error occurs when a smart pointer interface definition such as IXMLDOMDocumentPtr is defined in both the MSXML2 namespace (through #import) and the global namespace (through Msxml.h), so that the symbol is am
当一个智能指针接口定义时会发生“模棱两可标志”错误,例如IXMLDOMDocumentPtr同时在MSXML2命名空间(通过#进口)和全局命名空间(通过Msxml.h )被规定/定义,此标志为模棱两可的.当编译器解析界面时,编译器会先在具有不同签名的Msxml.h工作.

译文如下:
当(通过#import的方法)在MSXML2命名空间并(通过Msxml.h的方法)在全局命名空间中定义同一个智能指针接口(如IXML DOMDocumentPtr
)时,就会报出“ambiguous symbol(多义符号)”错误,因为此时这个symbol(符号)是多义的。当编译器解析接口时,编译器会首先侦测Msxml.h,因为它具有与通过#import方法生成的接口不...

全部展开

译文如下:
当(通过#import的方法)在MSXML2命名空间并(通过Msxml.h的方法)在全局命名空间中定义同一个智能指针接口(如IXML DOMDocumentPtr
)时,就会报出“ambiguous symbol(多义符号)”错误,因为此时这个symbol(符号)是多义的。当编译器解析接口时,编译器会首先侦测Msxml.h,因为它具有与通过#import方法生成的接口不同的签名。

收起

“歧义符号”错误出现在,当一个智能指针接口定义为,如IXMLDOMDocumentPtr,被同时在MSXML2命名空间(通过#输入口)和全局命名空间(通过Msxml.h)被定义,因此该符号是模糊的。当编译器解析的接口,编译器会先在Msxml.h查看,这里有着与那些在#输入生成的不同的签名。...

全部展开

“歧义符号”错误出现在,当一个智能指针接口定义为,如IXMLDOMDocumentPtr,被同时在MSXML2命名空间(通过#输入口)和全局命名空间(通过Msxml.h)被定义,因此该符号是模糊的。当编译器解析的接口,编译器会先在Msxml.h查看,这里有着与那些在#输入生成的不同的签名。

收起