informix
DataBlade Developers Kit User's Guide
Source Files Generated for DataBlade Modules

ActiveX/C++ Source Code Files

BladeSmith generates Visual C++ project and workspace files and a UNIX makefile into the \project\src directory.

Project.dsp Visual C++ project file
Project.dsw Visual C++ workspace file
ProjectU.mak Combination C and C++ makefile for use from the UNIX command line

The following sections provide a brief description of the ActiveX/C++ source files that BladeSmith generates into the project\src\ActiveX directory:

This appendix lists the files generated for an ActiveX value object project called Project that consists of a single ActiveX value object with an underlying opaque type called Opaque.

Important: In addition to adding logic to the opaque support routines (see Adding Project-Specific Logic to the Source Code), you can add your own functions to the C++ classes in the OpaqueCommon, OpaqueClient, and OpaqueServer .cpp and .h files. Do not modify any other of the generated source files.

Client Project Files

For each project, BladeSmith generates client-specific support library files and project files.

Support Library Files

For each project, BladeSmith generates the following client-specific support library files. Do not modify these files.

DkClient.cpp Client-specific support library functions
DkIntf.h Support library header file that defines the ActiveX value object custom interfaces (IRawObjectAccess and ITDkValue)
DkIntf_i.c Support library file that contains IIDs (interface identifiers) for interfaces defined in DkIntf.h
DkIntfImpl.h Support library C++ template implementations for custom interfaces defined in DkIntf.h

Project Files

For each project named Project, BladeSmith generates the following client project files. Do not modify these files.

ProjectX.cpp Object map entry, DLL entry points, and so on
ProjectX.def Definitions file
ProjectX.idl IDL file that Visual C++ uses to generate ProjectX.h and ProjectX.tlb
ProjectX.rc Resource file
ProjectXps.def Generated by ATL
ProjectXps.mk Generated by ATL
Resource.h Header file that contains definitions, including IDR_OPAQUE
StdAfx.cpp For precompiled header
StdAfx.h Standard header file

Client Files

For each opaque type/ActiveX value object named Opaque, BladeSmith generates the following client files. Only the OpaqueClient.cpp and OpaqueClient.h files can be modified.

Opaque.cpp C++ file that contains the methods for the ActiveX value object, that call into the C++ class (OpaqueClient.cpp).
Opaque.h Header file that contains the ActiveX value object definition.
Opaque.rgs Instructions for registering the ActiveX value object on the client computer.
OpaqueClient.cpp C++ class file that contains placeholders (function definitions and null bodies) for the methods for OpaqueClient. This file can be modified.
OpaqueClient.h Header file that contains the OpaqueClient class definition. This file can be modified.

Common Files

For each project, BladeSmith generates support library files and object files that are used to compile both the client project and the server project.

Support Library Files

For each project, BladeSmith generates the following support library files, which are used by both the client project and the server project. Do not modify these files.

StdDbdk.cpp Support library file that provides the server and, with the DkClient.cpp file (see Client Project Files), the client library functions
StdDbdk.h Support library header file for client and server; contains class and function definitions

Object Files

For each opaque type/ActiveX value object named Opaque, BladeSmith generates the following files, which are used by both the client project and the server project. Do not modify the OpaqueStruct.h file.

OpaqueCommon.cpp C++ file that contains the logic for all ActiveX custom methods and their server-project equivalents. This file can be modified.
OpaqueCommon.h Header file that contains the OpaqueCommon class definition. This file can be modified.
OpaqueStruct.h C header file that contains the OpaqueStruct definition (the C structure representing the opaque type)

Server Project Files

For each project named Project, the following server project files are generated. Do not modify these files.

ProjectWrap.cpp C++ file that contains the interfaces to the server-side support routines
ProjectWrap.h Header file for the server-side interfaces

Server Files

For each opaque type/ActiveX value object named Opaque, BladeSmith generates the following server files. You can modify these files.

OpaqueServer.cpp C++ class file that contains placeholders (function definitions and null bodies) for the methods for OpaqueServer. This file can be modified.
OpaqueServer.h Header file that contains the OpaqueServer class definition. This file can be modified.


DataBlade Developers Kit User's Guide, Version 4.0
Copyright © 1999, Informix Software, Inc. All rights reserved