How to implement Interfaces with Propertys returning IUnknown???? 
Author Message
 How to implement Interfaces with Propertys returning IUnknown????

It's this:

I defined an Interface, let's say IColumns like that:

        [
                uuid(0925FA70-E4A5-11d0-8D4D-000001078482),
                dual,
                oleautomation,
                odl,
                nonextensible,
                version(1.0)
        ]
        interface IColumns : IDispatch
        {
                [id(DEFAULT_MEMBER), propget]
                HRESULT _stdcall Item(
                        [in] VARIANT vntIndexKey,
                        [out, retval] IColumn**);

                [propget]
                HRESULT _stdcall Count([out, retval] long*);

                [id(NEWENUM_MEMBER), propget, hidden]
Here--->     HRESULT _stdcall NewEnum([out, retval] IUnknown**);
        };

Is it possible now, to implement this interface in an object by VB5.0
like the following:

Private mCol As Collection
Implements IColumns
'
' Member implementations follows...

VB doesn't want to accept that.
I tried to use IDispatch** instead of IUnknown** as the return type of
the NewEnum property definition, the VB does it. Why not with IUnknown
or IEnumVARIANT which I tried also?

Thanx for every helpful message.

Jojakim Stahl



Mon, 06 Dec 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How to implement Interfaces with Propertys returning IUnknown????

2. Implementing IUnknown interface in Access 2000 class

3. Cannot implement interface in VB with IUnknown retval

4. Exposing NEWENUM IUNKNOWN interface from a VBA Class mOdule

5. Interfaces IUnknown

6. 'hidden' interface IUnknown

7. Need help with interface type: IUnknown

8. IMPLEMENTING AN INTERFACE MADE FROM ANOTHER INTERFACE

9. Implementing an interface made from another interface

10. IMPLEMENTING AN INTERFACE MADE FROM ANOTHER INTERFACE

11. Implementing an interface made from another interface

12. Using OCX with IUnknown * and IUnknown ** params

 

 
Powered by phpBB® Forum Software