I am attempting to pass binary data from AcuCOBOL to a .NET method using a COMSAFEARRAY. For example, the buffer parameter in the below .NET method:
public int addRow(byte[] buffer);
I am receiving a COM error when I call this method passing the COMSAFEARRAY. If I use other data types like “string”, I do not have the error. Does anyone have any suggestions of how to pass data from acuCOBOL as a .NET byte array?


