Microsoft KB Archive/197305

= BUG: Error with Std EXE Converted from ActiveX Control Project =

Article ID: 197305

Article Last Modified on 11/18/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition

-



This article was previously published under Q197305



SYMPTOMS
If you convert an ActiveX control project to a Standard EXE project when the RequireLicenseKey flag is set, the following error message appears when you run it as a compiled EXE:

System Error &H80004002: No such interface supported.



CAUSE
The RequireLicenseKey flag is still present and set.



RESOLUTION
To work around this problem, do one of the following:


 * Turn it back into an ActiveX control project, open the Project Properties dialog box, clear the Require License Key option, and turn the project back into a Standard EXE project.
 * Open the .vbp file, and remove the RequireLicenseKey flag.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior

 * 1) Open a New ActiveX control project. UserControl1 is created by default.
 * 2) From the Project Menu, click Project Properties, select the Require License Key option, and click OK.
 * 3) Again, from the Project Menu, click Project Properties and click Standard EXE in the Project Type list box. Notice that the Require License Key option is cleared. Click OK.
 * 4) Click OK on the error message that appears.
 * 5) Close the UserControl designer.
 * 6) From the Project menu, add a new Form to the project and place the UserControl on the Form.
 * 7) From the File Menu, click Make .EXE to compile the project.
 * 8) Run the .exe.

RESULT: The following error occurs:

System Error &H80004002: No such interface supported.

Additional query words: requirelicensekey

Keywords: kbbug kbdatabase kbctrlcreate kbctrl kbpending KB197305

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.