c# Variant object 转换
请问要怎么输入.
这里给出两个正确的方法,大家参考一下..
VC++处理方法:
double * data = new double[2];
axDGraph1.PlotGraphs(&ArrayToVar(data,2),2);
VB处理方法:
Dim v1 As Variant;
Dim GRndData(0 To 1) As Double
v1 = GRndData
axDGraph1.PlotGraphs(v1, 2)
请问C#要如何处理...希望个路高手帮忙
我的C#处理方法:
Code
double[] d = new double[] { 1, 2 };
object data = d;
axDGraph1.PlotGraphs(ref data, 2);
double[] d = new double[] { 1, 2 };
object data = d;
axDGraph1.PlotGraphs(ref data, 2);
运行后是出错,但是编译是没错...
如果有兴趣的朋友,加QQ381717905,,我把源代码给你发过去...