ShayD
June 7th, 2006, 08:40 AM
Hello all!
In order to send a structure with the SerialPort Without using the serialization methods, I was needed to create a union that contains a struct and a byte array, both with offset 0.
I can’t seem to find a way to create an array inside a managed struct (managed union).
The problem is that the SerialPort->Write(…) function wont take an unmanaged array as the input.
Can anyone help?
In order to send a structure with the SerialPort Without using the serialization methods, I was needed to create a union that contains a struct and a byte array, both with offset 0.
I can’t seem to find a way to create an array inside a managed struct (managed union).
The problem is that the SerialPort->Write(…) function wont take an unmanaged array as the input.
Can anyone help?