Here is some code but i get processing error [Activate(2)] and does not work at all i get a striaight line,instaed of a curve and the doted lines are supposed to be "square" on the axis'.
memset(&dplot_,0,sizeof(dplot_));
dplot_.Version = DPLOT_DDE_VERSION;
dplot_.DataFormat = DATA_DXY;
dplot ...