Compatibility of DPlot 2.3.2.5 declarations

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
Bercic
Posts: 27
Joined: Mon May 17, 2004 6:44 am
Location: Slovenia

Compatibility of DPlot 2.3.2.5 declarations

Post by Bercic »

Dear David,
I wrote utility program to communicate with the Dplot through the Dplotlib.dll by DDE. Since I did not regularly update DPlot my code base on 2.3.2.5. version of DPlot, where in the include file following declarations were used:

Legend (0 TO 100) AS STRING * 80 ' Legend(0->39) is the caption for the legend
' Legend(n*40->n*40+39) is the caption for the n'th curve
LABEL (1 TO 100) AS STRING * 40 ' Strings displayed beside the last data point
' in a curve, 5 characters per curve
Title(1 TO 3) AS STRING *80

In the new - last edition - I notice that these declarations were changed to:

Legend AS STRING * 8080 ' Legend(0->79) is the caption for the legend
' Legend(n*80->n*80+79) is the caption for the n'th curve
LABEL AS STRING * 4000 ' Strings displayed beside the last data point
' in a curve, 40 characters per curve
Title1 AS STRING * 80
Title2 AS STRING * 80
Title3 AS STRING * 80
XAxis AS STRING * 80 ' X Axis label.
YAxis AS STRING * 80 ' Y Axis label.

I would like to know if my “old code” should work also with last edition. I notice also that array dimensions were changed from (1 to 100) to (0 to 99). I want to upgrade in order to use AddData8 function for adding double precision values to current plot. Since I am facing with the communication problems I would like to verify if at least strings are passed correctly. Is curve limit still 100?

Best regards, Gorazd
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Gorazd,
Those changes are due to differences between VB6 and VB.Net. For example in VB.Net you cannot have a string array that is part of a structure (the DPLOT structure, in this case). If you are still using VB6 then the old declarations should work fine. If using VB.Net then you'll need to make some changes to your code. VB6 will also work with the new declarations, given the corresponding changes in your code.
(1 to 100) to (0 to 99)
Another difference between VB6 and VB.Net. If you're using VB6 you shouldn't have to do anything to your source. If you've moved on to VB.Net you should take a look at the source in the /dplotlib/vbnet folder.

The short version is that none of this has anything to do with how dplotlib.dll accepts your input. It is all about what is acceptable in VB6 vs. VB.Net in passing that data.
Visualize Your Data
support@dplot.com
Bercic
Posts: 27
Joined: Mon May 17, 2004 6:44 am
Location: Slovenia

Post by Bercic »

David,
thank you for clarification. Actually I am 'still' using PowerBasicCC ..., which suits my needs.

Best regards, Gorazd
Post Reply