HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide

[Contents][Glossary][Index][Back][Next]

8.2.3 Column data editing UOC routine creation procedure (Windows)

This section explains the procedure for creating a column data editing UOC routine with Windows Datareplicator. A UOC routine for Windows Datareplicator is created as a DLL file (xxx.dll).

Organization of this subsection
(1) Creating the routine
(2) Compiling and linking
(3) Notes on creating a column data editing UOC routine

(1) Creating the routine

In the Windows edition, you can create a column data editing UOC routine in the following development environments:

To create a DLL file:

  1. Select the function for your column data editing UOC routine; create this function in the C language that is used to create application programs for the Windows HiRDB. For the DLL filename for a column data editing UOC routine, use hdscuoc.dll. Datareplicator's UOC header files are stored in \include under the Datareplicator installation directory.
  2. Compile and link the created function to create a DLL file. To call the UOC routine from Datareplicator, you must create an interface function with the _ _ cdecl calling convention, and then export it.

(2) Compiling and linking

This subsection explains how to compile and link a UOC routine in each development environment.

(a) Microsoft Visual C++ Version 5.0

If you use Microsoft Visual C++ Version 5.0 to compile and link your UOC routine, select Settings from the Project menu to specify options.

The following table lists and describes the items to be specified in Project Settings or Settings.

Table 8-24 Items to be specified in Project Settings or Settings in Microsoft Visual C++ Version 5.0

Item Category Category setting Setting
Compiler Code Generation Struct Member Alignment 8 bytes
Runtime Library Multi-threaded DLL
Calling Convention _cdecl *
Preprocessor Include file path Datareplicator-installation-directory\include

If an unresolved link error occurs, specify all libraries required during linking.


(b) Platform SDK February 2003
(c) Visual Studio 2005

If you use Visual Studio 2005 to compile and link your UOC routine, select Settings from the Project menu to specify options.

The following table shows the items to be specified.

Table 8-25 Items to be specified in Project Settings or Settings in Visual Studio 2005

Item Category Category setting Setting
Platform -- -- Win32
Configuration Properties General Common Language Runtime Support No Common Language Runtime Support
Compiler Code Generation Struct Member Alignment 8 bytes
Runtime Library Multi-threaded DLL
Advanced Calling Convention _cdecl *
General Additional Include Directories Datareplicator-installation-directory\include

Legend:
--: Not applicable

If an unresolved link error occurs, specify all libraries required during linking.


(3) Notes on creating a column data editing UOC routine