Distributing a Type Library

When you distribute an ATEasy application that uses a type library to automate software components, you need to make sure that the component is registered on the user's system. For a component to have been registered means that a special key was added to the Windows registry database identifying the component. The ATEasy application uses this key to find the type library and to retrieve information about the component.

If the type library is part of a Windows application, you should make sure that your users have that application installed as a prerequisite to running your own application. For example, if you have developed an ATEasy application that uses the Microsoft Excel application to perform calculations or display charts, you need to require users to have Microsoft Excel installed on their PCs. If the application containing the type library is installed, then that type library is registered in the Windows registry.

If the component that you are using in your ATEasy application is a specific ActiveX object, not part of a larger application, you must install the ActiveX object type library on your users' systems according to the control vendor's instructions. If no installation instructions are available for a type library, you can create entries for the control in the Windows registry. A registry utility, RegSvr32.exe, is located in the Windows System directory under Windows 95 and Windows 98, and in the Windows System32 directory under Windows NT. To add a type library to the Windows registry, have your setup program pass the complete path and filename of the type library as an argument to RegSvr32.