| PRB: Error "Bound to Unknown Type" Inserting ATL Control in VBA UserFormID: Q214462 
 | 
When inserting your ATL control in a Microsoft Office 97 VBA UserForm, you crash in OLEAUT32.DLL, or receive the following error:
Bound to unknown type.
This is typically caused by ATL controls that declare enumerated types in their IDL file without specifying a tag.
For example, you may have an enumerated type such as the following in your IDL file:
   typedef enum {
      myEnumVal1 = 1, myEnumVal2 = 2
   } MyEnum; To ensure that your type library is suitable for all containers, you should provide a tag for all enumerated types. For example:
   typedef enum MyEnumTag {
      myEnumVal1 = 1, myEnumVal2 = 2
   } MyEnum; © Microsoft Corporation 1999, All Rights Reserved.
Contributions by Joe Crump, Microsoft Corporation
For additional information, please see the following article(s) in the
Microsoft Knowledge Base:
Q181255 How To Implement Enumerated Properties in ATL
Additional query words: TYPE_E_UNDEFINEDTYPE 80028027 -2147319769
Keywords          : kbActiveX kbATL kbATL200 kbCtrlCreate KbVBA kbVC kbVC500 kbVC600 kbATL300 kbGrpDSO 
Version           : WINDOWS:2.0,3.0; winnt:5.0,6.0
Platform          : WINDOWS winnt 
Issue type        : kbprb Last Reviewed: July 27, 1999