一个可能是简单问题,但我真的不知道,顺便散分,并向各位大虾问好
LLnju 2002-03-25 10:38:46 我一直是用ATL的,最近发现VB满好的,打算也用用VB写写东西,但我发现这样一个在ATL中很简单的问题,到VB中竟然好像不行,我想肯定是我的使用上有问题,大家帮我看看应该怎么做,up,gz 有分。
我定义了这样的接口:
[object,uuid(),dual]interface A : IDispatch { [id(1)]HRESULT mothod1();};
[object,uuid(),dual]interface B : A { [id(2)]HRESULT mothod2(); };
我试图在VB中 Implements B , 但是VB 报:
bad interface for implements , interface derived from another pure interface with non-restricted methods
是不是VB不能实现这样的接口,还是应该用什么别的办法啊,一般来说各位大虾遇到这种情况是怎么办的。
注:不要ATL实现方式,我知道的,因为一些特殊原因我要用VB实现,苦啊。