Skip to content

Interface defs with array args issues #1892

@fafalone

Description

@fafalone

This concerns defining the 2nd argument here as an example of the issue:

        virtual void STDMETHODCALLTYPE ClearRenderTargetView( 
            /* [annotation] */ 
            _In_  ID3D11RenderTargetView *pRenderTargetView,
            /* [annotation] */ 
            _In_  const FLOAT ColorRGBA[ 4 ]) = 0;

First, definitely a bug with it as defined like above in my oleexp.tlb typelib: The tB hover info and Object Browser incorrectly shows it as ByRef ColorRGBA As Single(). VB6 Object Browser shows the 0 To 3 presumably interpreting it right. This likely represents a compatibility issue.

Second I guess is a feature request to support definitions like this in the interface syntax? See my question about workarounds on Discord; it looks like it might be messy.

I'll have some more thoughts on this later after (hopefully) resolving the current prospects of a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions