Build the Stub HistHook API
- Last UpdatedOct 29, 2024
- 1 minute read
You must do the following to build and install the HistHook API:
Note: Before installing the DLL, make sure of the following:
1. Shut down all the AVEVA Batch Management applications. This includes manually stopping the HistQReader service on the Batch
History Server.
2. Back up the original HistHook.dll.
To install the DLL
-
Copy the sample project from the CD to a system with Visual Studio.
-
Load the project solution.
Note: If you are using VS 2008 or later, the project solution will be converted accordingly.
-
If you want to build the commented-out sample code, remove the comments for the following functions in the devhisthook.c file:
-
HistHookBatchId
-
HistHookBatchDetail
-
HistHookPhaseInstructionInit
-
HistHookPhaseInstruction
-
HistHookReportTriggerEndOfBatch
Note: Also, uncomment the other supporting definitions and functions in the file.
-
-
Build the sample code.
Note: Select the Release build configuration if you want to copy the DLL to a non-development system.
-
Save the DLL into the AVEVA Batch Management Bin directory on the Batch Server, Development Client, Runtime Client, and History Server.
Note: The default path of the Bin folder is C:\Program Files\AVEVA\Batch Management\Bin.