View previous topic :: View next topic |
Author |
Message |
Bercic
Joined: 17 May 2004 Posts: 27 Location: Slovenia
|
Posted: Tue Jun 20, 2017 7:42 am Post subject: Compatibility of DPlot 2.3.2.5 declarations |
|
|
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 |
|
Back to top |
|
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2310 Location: Vicksburg, Mississippi
|
Posted: Tue Jun 20, 2017 5:50 pm Post subject: |
|
|
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.
Quote: | (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 |
|
Back to top |
|
|
Bercic
Joined: 17 May 2004 Posts: 27 Location: Slovenia
|
Posted: Wed Jun 21, 2017 1:06 am Post subject: |
|
|
David,
thank you for clarification. Actually I am 'still' using PowerBasicCC ..., which suits my needs.
Best regards, Gorazd |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|