Using with Borland C++ Builder 5
Posted: Fri Oct 31, 2008 10:17 am
Hi,
I am trying to use the dplotlib.dll in BorlandC++.
I set the preferences as:
memset(&dplot,0,sizeof(DPlot));
dplot.Version = DPLOT_DDE_VERSION;
dplot.DataFormat = DATA_XYYY;
dplot.MaxCurves = 1;
dplot.MaxPoints = NP;
dplot.NumCurves = 2;
dplot.Scale = SCALE_LINEARX_LINEARY;
dplot.LegendX = 0.05F;
dplot.LegendY = 0.05F;
dplot.NP[0] = NP;
And commands as
sprintf(cmds,"[ManualScale(0,0,1,30)][TickInterval(1,0.5,0.25)]"
"[Caption(\"DPLOTLIB XY Test\")]"
"[GeneralOptions(0x00000020,1)]"
"[Color(1,255,0,0)][Color(2,0,0,255)]"
"[TextFont(1, 8, 0,0,0,0,0,\"Arial\")]"
"[TextFont(2,12,700,0,0,0,0,\"Arial\")]"
"[TextFont(4,10, 0,0,0,0,0,\"Arial\")]"
"[TextFont(5,10, 0,0,0,0,0,\"Arial\")]"
"[TextFont(6,10, 0,0,0,0,0,\"Arial\")]"
"[ClearEditFlag()]");
When I call dPlot_Plot8 the return value is "0" and a blank Plot gets opened and it raises exception?
Did I miss out something?
cheers, hare
I am trying to use the dplotlib.dll in BorlandC++.
I set the preferences as:
memset(&dplot,0,sizeof(DPlot));
dplot.Version = DPLOT_DDE_VERSION;
dplot.DataFormat = DATA_XYYY;
dplot.MaxCurves = 1;
dplot.MaxPoints = NP;
dplot.NumCurves = 2;
dplot.Scale = SCALE_LINEARX_LINEARY;
dplot.LegendX = 0.05F;
dplot.LegendY = 0.05F;
dplot.NP[0] = NP;
And commands as
sprintf(cmds,"[ManualScale(0,0,1,30)][TickInterval(1,0.5,0.25)]"
"[Caption(\"DPLOTLIB XY Test\")]"
"[GeneralOptions(0x00000020,1)]"
"[Color(1,255,0,0)][Color(2,0,0,255)]"
"[TextFont(1, 8, 0,0,0,0,0,\"Arial\")]"
"[TextFont(2,12,700,0,0,0,0,\"Arial\")]"
"[TextFont(4,10, 0,0,0,0,0,\"Arial\")]"
"[TextFont(5,10, 0,0,0,0,0,\"Arial\")]"
"[TextFont(6,10, 0,0,0,0,0,\"Arial\")]"
"[ClearEditFlag()]");
When I call dPlot_Plot8 the return value is "0" and a blank Plot gets opened and it raises exception?
Did I miss out something?
cheers, hare