Re: .Net DLL only accepts ByteArray(1 to 32)



Dim aData(31) As Byte


"Benjamin Lukner" <Benjamin.Lukner_at_trinomix.de@xxxxxxxxxxxxx> wrote in
message news:%23frHNhLRFHA.1476@xxxxxxxxxxxxxxxxxxxxxxx
> Hi!
>
> I'm using a .Net DLL that's referenced by my project.
> The strange thing is that the DLL vendor uses byte arrays of 32 bytes
> length having a lower bound of 1 to read and write data!
>
> The only way I've found to create such an array is
>
> Dim aData As System.Array = _
> System.Array.CreateInstance( _
> GetType(System.Byte), _
> New Integer() {32}, _
> New Integer() {1})
>
> Does anyone know a neater way to do it?
>
>
> Kind regards,
>
> Benjamin Lukner


.



Relevant Pages

  • .Net DLL only accepts ByteArray(1 to 32)
    ... I'm using a .Net DLL that's referenced by my project. ... The strange thing is that the DLL vendor uses byte arrays of 32 bytes length having a lower bound of 1 to read and write data! ...
    (microsoft.public.dotnet.framework.compactframework)
  • .Net DLL only accepts ByteArray(1 to 32)
    ... I'm using a .Net DLL that's referenced in my project. ... The strange thing is that the DLL vendor uses byte arrays of 32 bytes length to read and write data that have a lower bound of 1! ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Function CrossOver in VB.net
    ... Dim T as integer = dt.rows.count-1 ... Price1 has a variable arrival time, so that in order to get a ... you code to populate the source arrays won't work: ... Dim Price1 As String ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Conversion Problem
    ... the way to persists data is totally different so if you need to read legacy ... vb8 does not support arrays declared like arr1because when you ... dim arr1 ... I have then tried to Redim in an initialation so: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Creating a UDF
    ... - You are currently requiring arrays of doubles. ... Dim nOpening As Integer ... ReDim lnOCAs Double ...
    (microsoft.public.excel.programming)

Loading