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



Stephany Young wrote:

My point exactly. Therefore it must be aData(31) As Byte or the DLL is not .NET.

The dll itself is .Net. I assume that that dll is a wrapper around another dll that is not .Net. The function accepts and returns a variable of type object. The object I receive is of type System.Array. To write I have to create such an array.

The question is not IF the dll is .Net but HOW to create an Array beginning at "1" respectively if there is a better way than mine.

Kind regards,

Benjamin Lukner
.



Relevant Pages

  • Coercing a variant into an array
    ... I need to call a function stored into a DLL that take as ... It seems that I have to declare my wrapper as ... And as such I will need to parse my variant and build the array by ...
    (microsoft.public.excel.programming)
  • RE: how can pass variable between two diferent assembly loaded by loadfrom c:\myassembly.dll
    ... You can load an assembly using loadfrom and then basically get a ... particular type and assign it to a type object. ... After that you can invoke ... that declares a member which is of a class defined in the other dll. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: .Net DLL only accepts ByteArray(1 to 32)
    ... Given that, apart from that overload, array subscripts are 0 based, I would ... Therefore it must be aDataAs Byte or the DLL is ... > The function accepts and returns a variable of type object. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: .Net DLL only accepts ByteArray(1 to 32)
    ... > Stephany Young wrote: ... Therefore it must be aDataAs Byte or the DLL is ... > The function accepts and returns a variable of type object. ... > The question is not IF the dll is .Net but HOW to create an Array ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Is a Thread appropriate?
    ... >> Now, if you are not doing dynamic loading of the DLL, you shouldn't need GetProcAddress. ... >> Note that it is foolish to create a char array, particularly a char array of a fixed size. ... >> If you need to declare a separate variable, ... without necessity. ...
    (microsoft.public.vc.mfc)