Visual C++
#include <windows.h>
#include "pure.h"
...
if (QuantifyIsRunning()) {
// Wait 'till the user says to start recording
QuantifyStopRecordingData();
QuantifyClearData();
MessageBox(0, "Hit OK when ready for Quantify to start recording data",
"Quantify",
MB_OK | MB_TASKMODAL | MB_TOPMOST);
QuantifyStartRecordingData();
}
Visual Basic
Dim status As Integer
...
If QuantifyIsRunning() = 1 Then
MsgBox "Quantify is running"
status = QuantifyStopRecordingData()
status = QuantifyClearData()
MsgBox "Quantify is running but not recording data"
End If
(C) Copyright IBM Corporation 1993, 2009.