"Error processing this command: Activate (6)"
The number in brackets shows how many times the error condition occured.
The number in the bracket will keep increasing each time I close the
dialog bog and restast it
At start of the dialog box I properly initialize DPlot and at closing the dialog box I duly clean up DPlot:
Code: Select all
case WM_INITDIALOG:
.....
if (DPlotWasActive) {
dPlot_Start(1,&DPlotWasActive);
if (dPlot_MinVersion(2, 1, 4, 0) == 0) {
MessageBox((HWND)NULL,"This program requires DPlot or DPlot Jr 2.1.4.0 or later.", "C DPLOTLIB Warning",0);
EndDialog(hDlg,0);
return TRUE;
}
// Use MessageBox for error messages in DPLOTLIB
dPlot_SetErrorMethod(2);
}
return TRUE;
case WM_DESTROY:
if (DocNum) dPlot_Command(DocNum, "[FileClose()]");
if (!DPlotWasActive) dPlot_Stop();
if (hbmp) DeleteObject(hbmp);
...
return TRUE;
Peter