How To Provide Constants from an ActiveX Component (137095)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q137095 SUMMARY
The use of constants is an efficient way to keep code clear, easier to
document, and more understandable. When you create ActiveX components, it
is more efficient to provide constants with the server in a ready-to-use
form. This eliminates the need to declare constants in client (container)
applications and makes it easier to call into server classes. This article
describes two ways to implement constants with your ActiveX component.
REFERENCES
MkTypLib comes with Win32 Software Development Kit (SDK) for Windows NT and
Microsoft Visual C++ version 2.0 or later
For more information on Type Libraries and ODL, please see the Win32 SDK.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KB137095 |
---|
|