ActiveX programming task overview
About this task
Procedure
- Add code to these source code files to enable your routines
to function as you intend:
- OpaqueCommon.cpp: Contains the logic for the opaque type routines that are implemented both as ActiveX custom methods and server project routines.
- OpaqueCommon.h: Contains the logic for the IsNull() and SetNullFlag() custom methods.
- OpaqueServer.cpp: Contains the logic for the opaque type routines that are implemented only for the server project.
See Implement ActiveX value objects for instructions.
- Compile your source code files by using the generated makefiles.
See Compile client and server projects for instructions.
Results
To avoid merging conflicts when you regenerate your code,
add code only in areas marked by
Developer:
comments
or after the generated code. If you do modify code outside the designated
areas, you might have two copies of the routine after you regenerate:
the one you modified and the one BladeSmith generated. Although your
changes remain, you must resolve conflicts in the two pieces of code.Important: In addition to adding logic to the opaque support
routines, you can add your own functions to the C++ classes in the OpaqueCommon, OpaqueClient,
and OpaqueServer .cpp and .h files.
Do not modify any of the other generated source files.