实现接口无效Interface not valid for Implements

并非所有接口都可以在 Visual Basic 中实现。Not all interfaces can be implemented in Visual Basic. 此错误具有以下原因和解决方法:This error has the following cause and solution:

  • 此接口包含 Visual Basic 无法支持的一些元素。The interface contains some element that can't be supported by Visual Basic. 例如, Visual Basic 没有与无符号长整型值等效的类型, Visual Basic 不能将过程参数指定为 "仅出"。For example, Visual Basic has no equivalent to the unsigned long integer type, Visual Basic can't designate a procedure parameter as "out-only." 虽然 Visual Basic 支持在 Visual Basic 标识符中使用下划线字符 (),但它无法实现在其成员的名称中使用下划线字符的接口。Although Visual Basic supports the use of the underscore character () in Visual Basicidentifiers, it can't implement an interface that uses underscore characters in the names of its members.

    您无法在 Visual Basic 中实现此接口。You can't implement the interface in Visual Basic.

有关其他信息,选择有问题的项并按 F1(在 Windows 中)或 HELP(在 Macintosh 上)。For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.