Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: Error "Bound to Unknown Type" Inserting ATL Control in VBA UserForm

View products that this article applies to.

This article was previously published under Q214462

↑ Back to the top


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.

↑ Back to the top


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;

↑ Back to the top


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;

↑ Back to the top


For additional information, see the following article or articles in the Microsoft Knowledge Base:
181255� How To Implement Enumerated Properties in ATL

↑ Back to the top

Keywords: kbctrlcreate, kbprb, KB214462

↑ Back to the top

Article Info
Article ID : 214462
Revision : 6
Created on : 1/24/2007
Published on : 1/24/2007
Exists online : False
Views : 419