The WriteRealPortVariant method writes data stored in array of VARIANT type to real serial port.  

LONG WriteRealPortVariant(
 VARIANT Buf// data buffer

  Buf – [out] Pointer to the buffer that receives the data read from the serial port.
Return Values
  The WriteRealPortVariant method returns the number of bytes to write to the port.

 This method should be used in IDE (VB, C#), which are not able to work with pointers.

VB.NET example:

 Dim Buf(3) As Byte
AxSpsax. WriteRealPortVariant (Buf)

C# example:

 byte[] Buf = new byte[10];
AxSpsax. WriteRealPortVariant (Buf);