The information in this article applies to:
SUMMARYThe ControlWizard included with the Microsoft OLE Control Development Kit (CDK) generates both 16-bit and 32-bit projects. In most cases, you can develop your control on either a 16-bit or 32-bit platform, and then rebuild the control on the other platform. MORE INFORMATION
When ControlWizard is used to create an OLE control, two projects are
generated. The full project name you specify is used as the base name
for the 16-bit MAK file and other files used by the 16-bit IDE. The
first six letters of the project name followed by "32" are used to
create a base name for the 32-bit MAK and DEF files and other files
used by the 32-bit IDE.
TESTCTRL.MAK -- 16-bit Project FileControlWizard also generates a 'makefile' file that NMAKE can use to generate either a 16- or 32-bit project by specifying the WIN32 flag on the command line. For example:
Within the generated source files, place platform-dependent code in
conditional compilation blocks, as shown in this example:
To maintain platform independence, use conditional compilation blocks
to isolate platform dependencies in the code you add to your control.
Use the #error statement to flag features that are not implemented
for one platform or the other. For example, you might code the previous
example like the following if the 32-bit implementation was not complete:
Note that because separate project files are used for 16- and 32-bit
targets, all project maintenance will need to be performed for both
projects. Project maintenance activities include:
Additional query words: kbinf 1.00 2.00 ole control portability
Keywords : |
Last Reviewed: January 18, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |