Oxygen Basic

Programming => Example Code => Topic started by: Arnold on October 05, 2019, 03:38:25 AM

Title: Small typo?
Post by: Arnold on October 05, 2019, 03:38:25 AM
Hi Charles,

I think there is a typo in examples\COM\sapDemo1.o2bas? If I replace line 32 with:
pUnkouter=0
then the app works fine.

Roland
Title: Re: Small typo?
Post by: Charles Pegge on October 06, 2019, 09:28:53 AM
Thanks Roland,

The underlying problem is that void* derivatives translate to sys. LPUNKNOWN punkouter should be a pointer to the Iunknown class instead of being defined as a void pointer (inc\COM\comutil.inc).

In any case the line can be omitted since null is the initial value.
Title: Re: Small typo?
Post by: JRS on October 06, 2019, 09:56:02 AM
Great to hear the COM talk here on the forum.
Title: Re: Small typo?
Post by: Arnold on October 09, 2019, 12:13:22 AM
I am a bit helpless. I found this example because I searched for the usage and difference of extends, of, from compared with the keyword has. The purpose was only to report a different behaviour of an app, not to ask about COM.

Perhaps there is a possibility to place a notification about bugs / error messages of some demos? It is a bit confusing to always add a new topic for a message that is only meant to report a different result when testing a new beta release. I would not even expect a reply, only if I am completely wrong.

Title: Re: Small typo?
Post by: Charles Pegge on October 15, 2019, 01:51:32 AM
Each anomaly reported gets close scrutiny wherever possible. The problems are often concealed, and are best handled individually, as soon as they appear.