是3D图不是带有3d 效果的图。
第一种方法: for(double x=0; x<30; x++)
for(double y=0; y<20; y++)
// for(double z=0; z<10; z++)
m_TeeChart.Series(1).GetAsSurface().AddXYZ(x, y, 2, NULL, 12);第二种方法:
COleSafeArray XValues;
COleSafeArray YValues;
COleSafeArray ZValues;
srand(30);
CreateXY(XValues, YValues);
srand(100);
CreateXY(YValues, ZValues);
m_TeeChart.Series(1).GetAsSurface().AddArrayXYZ(XValues, YValues, ZValues);这两种方法都是过,没有报错,但是运行的时候却提示invalid class typecat
第一种方法: for(double x=0; x<30; x++)
for(double y=0; y<20; y++)
// for(double z=0; z<10; z++)
m_TeeChart.Series(1).GetAsSurface().AddXYZ(x, y, 2, NULL, 12);第二种方法:
COleSafeArray XValues;
COleSafeArray YValues;
COleSafeArray ZValues;
srand(30);
CreateXY(XValues, YValues);
srand(100);
CreateXY(YValues, ZValues);
m_TeeChart.Series(1).GetAsSurface().AddArrayXYZ(XValues, YValues, ZValues);这两种方法都是过,没有报错,但是运行的时候却提示invalid class typecat
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货