Help and Support
 

powered byLive Search
Article ID: 149429 - Last Review: July 14, 2004 - Revision: 2.1

INFO: What Is an OCA file?

This article was previously published under Q149429
Expand all | Collapse all

SUMMARY

For every custom control file (.OCX) that Visual Basic uses, there is an accompanying .OCA file of the same file name. For example, GRAPH16.OCX has an accompanying .OCA file called GRAPH16.OCA. An .OCA file is a binary file that functions as both an extended type library file and a cache for the custom control file.

MORE INFORMATION

A type library is a file or component within another file that contains OLE Automation standard descriptions of exposed objects, properties, and methods. The actual working type library for a custom control used in Visual Basic is a combination of the type library of the control itself and the additional properties provided by the framework that wrap the control.

Some of the properties of the control are provided by the framework and some by the control itself. Programmatically, the properties from the framework and the control all appear as properties of the control.

In order for these properties to appear, Visual Basic creates an extended type library when the control is loaded into the toolbox. Because the process of reading the control's type library and creating the extended type library is time consuming, Visual Basic caches the extended type library information into an OCA file.

If you delete the OCA file for a control Visual Basic recognized, Visual Basic will recreate the .OCA file when you load a project requiring the control. This recreation process comes with a time penalty.

APPLIES TO
  • Microsoft Visual Basic 4.0 Standard Edition
  • Microsoft Visual Basic 4.0 Professional Edition
  • Microsoft Visual Basic 4.0 16-bit Enterprise Edition
  • Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
  • Microsoft Visual Basic 5.0 Control Creation Edition
  • Microsoft Visual Basic 5.0 Learning Edition
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
Keywords: 
kbinfo KB149429

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.