|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
.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! 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 Benjamin,
"Benjamin Lukner" <Benjamin.Lukner_at_trinomix***@mp3mounter.de> schrieb: Mhm... Are you sure this is a .NET DLL?!> 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! -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Herfried K. Wagner [MVP] wrote:
>> I'm using a .Net DLL that's referenced in my project. Yes, I'm sure.>> 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! > Mhm... Are you sure this is a .NET DLL?! But it seems to be a very simple wrapper around a COM Control that can be used with VB6. I don't know why the vendor decided to use an array that begins at 1. And why building another wrapper instead of a "real" DLL. You know, the COM Control itself is already a wrapper around the base API DLL. Benjamin
Loop ?
How to update an application Binding an Array to a Combo Box SqlDataReader accessed only by field ordinals? Singleton Pattern for Database Access --- Leave Open or Close Connection Finding Version of All Asemblies Required by Application How to Publish a Project to Production Server special character inside a string repainting problem datagrid woes |
|||||||||||||||||||||||