• Welcome to Theos PowerBasic Museum 2017.

Com browser error

Started by Edwin Knoppert, September 25, 2010, 12:25:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Edwin Knoppert

Do you see this error as well using the com browser in 9.01 and 5?

My interface has it like this:

        Property Get Errors Alias "Errors"      As IErrors:  Property = Me: End Property   

And results into:

    Method Get_Errors() As IUnknown


And should be:

    Property Get Errors() As IErrors


The options are set to use properties.
version: 2.00.0081

José Roca

If it in herits from IUnknown (not shown) then its not an error. IUnknown interfaces only use methods, even if PB allows you to write the source code as if it was a property.

Edwin Knoppert

Pfff, who knows that?

Anyway it is IUnknown yes.

Edwin Knoppert

Hmm, what should i choose to make it generate like a property?
I would like to use the compound syntax here (my only goal here).
There is no need for a dispatch interface.
I have many interfaces in one class.

Modifying the generated code does work as intended.

Edwin Knoppert

As Automation seems to work properly.
Will use that..

José Roca

The other also works properly, just not the way you want.