INFORMIX
DataBlade Developers Kit User's Guide
Appendix B: Source Files Generated for ActiveX Value Objects
Home Contents Index Master Index New Book

Source Files Generated for ActiveX Value Objects

The following sections in this appendix provide a brief description of the files that are written to the \src\ActiveX directory when you use BladeSmith to generate source code for ActiveX value objects:

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, client-specific support library files and project files are generated.

Support Library Files

For each project, the following client-specific support library files are generated. 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 containing 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, the following client project files are generated. Do not modify these files.

ProjectX.cpp

Object map entry, DLL entry points, and so on

ProjectX.def

Definitions file

ProjectX.dsp

Microsoft Developer Studio Visual C++ 5.0 ATL project file

ProjectX.idl

IDL file that Visual C++ 5.0 uses to generate ProjectX.h and ProjectX.tlb

ProjectX.mak

Windows 95 and NT makefile for scripts or for command-line users

ProjectX.rc

Resource file

ProjectXps.def

Generated by ATL

ProjectXps.mk

Generated by ATL

Resource.h

Header file containing 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, the following client files are generated. Only the OpaqueClient.cpp and OpaqueClient.h files can be modified.

Opaque.cpp

C++ file containing the methods for the ActiveX value object, that call into the C++ class (OpaqueClient.cpp)

Opaque.h

Header file containing the ActiveX value object definition

Opaque.rgs

Instructions for registering the ActiveX value object on the client computer

OpaqueClient.cpp

C++ class file containing placeholders (function definitions and null bodies) for the methods for OpaqueClient. This file can be modified.

OpaqueClient.h

Header file containing the OpaqueClient class definition. This file can be modified.

Common Files

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

Support Library Files

For each project, the following support library files-used by both the client project and the server project-are generated. 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, the following files-used by both the client project and the server project-are generated. Do not modify the OpaqueStruct.h file.

OpaqueCommon.cpp

C++ file containing the logic for all ActiveX custom methods and their server-project equivalents. This file can be modified.

OpaqueCommon.h

Header file containing the OpaqueCommon class definition. This file can be modified.

OpaqueStruct.h

C header file containing 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.

ProjectS.dsp

Microsoft Developer Studio Visual C++ 5.0 ATL project file for Windows NT servers

ProjectS.mak

Windows 95 and NT makefile for scripts or for command-line users

ProjectU.mak

Makefile for Solaris servers

ProjectWrap.cpp

C++ file containing 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, the following server files are generated. You can modify these files.

OpaqueServer.cpp

C++ class file containing placeholders (function definitions and null bodies) for the methods for OpaqueServer. This file can be modified.

OpaqueServer.h

Header file containing the OpaqueServer class definition. This file can be modified.




DataBlade Developers Kit User's Guide, version 3.6
Copyright © 1998, Informix Software, Inc. All rights reserved.