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

Parameters
digit1-digit4Version 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
Neither the full version of DPlot nor DPlot Jr meet the minimum version requirements, and/or neither program was found.
The 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.
The full version of DPlot does not meet the minimum version requirement (or it was not found), but DPlot Jr does meet that requirement. All subsequent calls to DPLOTLIB.DLL functions will use DPlot Jr.
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 statically to DPLOTLIB.DLL and call FreeLibrary to unload the DLL. Therefore if you are statically linking to DPLOTLIB.DLL, 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.

 

 
Previous Home Next DPlot Home