Building the Sample Environment on Windows
This sample includes both Workbench and Visual Studio based development environments. If you wish to use use Workbench, you should start by opening the workspace file SQLReplicaitonIoHooks.vpw. If you wish to use Visual Studio, you should start by opening the solution file SqlReplicationIoHools.sln. Both of these environments contain several projects, as follows:
Contains subroutines, functions and classes that are used both by the sample application, and by the replicator program. Note that the main code used to interact with ISAM files (EmployeeIO.dbl) and the relational database (EmployeeSqlIO.dbl) are in this library. These files, and others, were code-generated by using CodeGen.
Contains the replicator program as well as several utility programs.
One of the utility programs is named ReplicatorMenu and can be used to interact with and control a running replicator process.
Another of the utility programs is named EmployeeMaintenance and can be used to maintain the contents of the employee data file, which this environment is configured to replicate to the SQL database.
Building the Code in Workbench
•Start Workbench and open the workspace called SQLReplicaitonIoHooks.vpw via the "Project > Open Workspace..." menu option.
•Make sure you can see the "Projects" window. If it is not active then make it active, if it is not displayed then display it by selecting "View -> Toolbars" from the menu and checking the "Projects" option.
•Right-click on the library.vpj project and select "Set Active Project"
•From the main menu, select "Build > Build" to build the library project
•Right-click on the replicator.vpj project and select "Set Active Project"
•From the main menu select "Build > Build" to build the replicator program.
Building the Code in Visual Studio
•Start Visual Studio and open the solution called SQLReplicaitonIoHooks.sln.
•From the Build menu, select "Rebuild Solution".