c# - intellisense in vb6 doens't work with Interop and UnmanagedType.Struct -


this question has answer here:

i have c# interop class property:

decimal importodocumento { [return: marshalas(unmanagedtype.struct)] get; [param: marshalas(unmanagedtype.struct)] set; } 

in vb6 should variant/decimal. if try use it, works. can assign value , can value. problem vb6 intellisense doesn't work. can see other properties of class not importodocumento. intellisense important because class used other people.

how can do?

thanks

the reason why method missing intellisense because type library exporter gives 2 warnings:

type library exporter warning processing 'classlibrary1.class1.get_importodocumento(#0), classlibrary1'.
warning: method or field has invalid element_type/native_type combination.

type library exporter warning processing 'classlibrary1.class1.set_importodocumento(value), classlibrary1'.
warning: method or field has invalid element_type/native_type combination.

unable generate proper tlb information property, exporter omits entirely, if used [classinterface(classinterfacetype.autodispatch)]. without information, property available late binding, why still works.

you need declare property object have marshaled variant.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -