data conversion !!!

  • Thread starter Thread starter Giang Pham
  • Start date Start date
G

Giang Pham

I have an activeX control written by C++
It has a function like this:
void AppendYData(double FAR* pYData, long lDataSize, short nElementID)

When I inssert it into project C#, it generate interface like this:
public virtual new void AppendYData ( System.Double pYData , System.Int32
lDataSize , System.Int16 nElementID )

The prototype is : AppendYData(ref double, int, short)

The problem here is : C++ requires input is array of double data, but when
import to C#, it just require a double value.

Do anyone have this problem ??? Please help me.
Thank you alot,
Giang.
 
Did you try this?

void AppendYData( ref Double[] pYData, int lDataSize, short nElementId
)

Andy
 
Back
Top