HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide
This section explains the procedure for creating a send data UOC routine with Windows Datareplicator. A UOC routine for Windows Datareplicator is created as a DLL file (xxx.dll).
In the Windows edition, you can create a send data UOC routine in the following development environments:
To create a DLL file:
This subsection explains how to compile and link a UOC routine in each development environment.
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-35 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.
cl.exe /c /D_MT /D_DLL /MD /D"WINVER=0x0400" /D"_WIN32_WINNT=0x0333 /D"_WINNT" /D"NDEBUG" /D"_WINDOWS" /D"WIN32" /D"WIN64" /nologo /I Datareplicator-installation-directory\include UOC-source-file-name[UOC-source-file-name]... |
link.exe /subsystem:console /incremental:no /machine:IA64 /out: senduoc.dll /DLL /DEF:definition-file UOC-object-file-name[UOC-object-file-name]... |
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 lists and describes the items to be specified.
Table 8-36 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 |
If an unresolved link error occurs, specify all libraries required during linking.
All rights reserved. Copyright (C) 2007, 2013, Hitachi, Ltd.