How pass an decimal from c# to vb6 with Interop
I have an interop c# class with a property: decimal ImportoDocumento { get; set; } if i try to access to this property from vb6 a receive an error: Compiler error: Function or interface marked as restricted or the function uses an automation type not supported in visual basic. So i found this partial solution: decimal ImportoDocumento { [return: MarshalAs(UnmanagedType.Currency)] get; [param: MarshalAs(UnmanagedType.Currency)] set; } but currency supports numbers with max 4 decimals. i have numbers with 6 decimals too. How can i do? The error message is appropriate, decimal is not a valid