Theos PowerBasic Museum 2017

Archive => Discussion - Legacy Software (PBWIN 9.0+/PBCC 5.0+) => Topic started by: Edwin Knoppert on September 25, 2010, 12:25:30 AM

Title: Com browser error
Post by: Edwin Knoppert on September 25, 2010, 12:25:30 AM
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
Title: Re: Com browser error
Post by: José Roca on September 25, 2010, 02:12:00 AM
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.
Title: Re: Com browser error
Post by: Edwin Knoppert on September 25, 2010, 09:09:01 AM
Pfff, who knows that?

Anyway it is IUnknown yes.
Title: Re: Com browser error
Post by: Edwin Knoppert on September 25, 2010, 09:16:51 AM
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.
Title: Re: Com browser error
Post by: Edwin Knoppert on September 27, 2010, 10:07:21 AM
As Automation seems to work properly.
Will use that..
Title: Re: Com browser error
Post by: José Roca on September 27, 2010, 03:08:50 PM
The other also works properly, just not the way you want.