The following example shows how to build the FileOnOff agent using your own VCSAgStartup
entry point. This example implements the VCSAgStartup
, online
, offline
, and monitor
entry points only.
Note You must first install Visual C++ on the system on which the agent will be built.
Example: implementing agent using VCSAgStartup and script entry points
C:\> md %VCS_HOME%\src\agent\FileOnOff
C:\> copy %VCS_HOME%\src\agent\Sample\*
%VCS_HOME%\src\agent\FileOnOff
C:\> cd %VCS_HOME%\src\agent\FileOnOff
sample.C
and modify the VCSAgStartup()
functionVCSAgInitEntryPointStruct(V50);
// Do not configure any entry points because
// this example does not implement any of them
sample.C
and build the agent by invoking nmake
. (Makefile
is provided.)
C:\> md %VCS_HOME%\bin\FileOnOff
%VCS_HOME%\bin\FileOnOff\FileOnOff.dll