Navigation:  DPLOTLIB Functions >

DPlot_MinVersion function

Print this Topic Previous pageReturn to chapter overviewNext page

int DPlot_MinVersion(int digit1, int digit2, int digit3, int digit4);

Parameters

digit1-digit4

Version number digits. To specify that version 2.0.3.0 or later should be used, for example, use DPlot_MinVersion(2,0,3,0). DPlot_MinVersion will force this check to the maximum of the specified version or the minimum acceptable version for DPLOTLIB.DLL. Currently the minimum acceptable version is 2.0.0.3. You might, however, want to use this function if your program makes use of features in DPlot that are newer than the minimum acceptable version.

Return Values

0

Neither the full version of DPlot nor DPlot Jr meet the minimum version requirements, and/or neither program was found.

1

An installed full version of DPlot meets the version requirement, but DPlot Jr does not (or is not installed). All subsequent calls to DPLOTLIB.DLL will use the full version of DPlot.

2

The full version of DPlot does not meet the minimum version requirement (or it was not found), but the installed DPlot Jr does meet that requirement. All subsequent calls to DPLOTLIB.DLL functions will use DPlot Jr.

3

Both the full version of DPlot and DPlot Jr are installed, and both meet the minimum version requirement. All subsequent calls to DPLOTLIB.DLL functions will use DPlot Jr only if it was already running. Otherwise the full version will be used.

Remarks

This function sets a flag within DPLOTLIB.DLL that will force it to use DPlot Jr if DPlot Jr is installed and meets the minimum version requirement and the full version of DPlot is either not installed or does not meet the version requirement.

If this function is not called by your program, then DPlot_Start will call this function itself and force the minimum version (currently) to 2.0.0.3.

NOTE:This flag will be reset if you link dynamically to DPLOTLIB.DLL and call FreeLibrary to unload the DLL. Therefore if you are dynamically linking to DPLOTLIB.DLL using LoadLibrary/GetProcAddress/FreeLibrary calls (which is the default behavior using all versions of VB), calls to this function must be inside the same LoadLibrary/FreeLibrary pair as the function (DPlot_Plot, DPlot_GetBitmap, etc.) that you want to be effected by the result.

 

 

 


Page url: http://www.dplot.com/lib/index.htm?dplot_minversion.htm