Microsoft KB Archive/81458

= VB.EXE Error: License File for Custom Control Not Found =

Article ID: 81458

Article Last Modified on 12/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition

-



This article was previously published under Q81458



SUMMARY
If you distribute the source code (.FRM) of a program that uses a custom control, you must also distribute the necessary custom control files for that control (.VBX, .DLL, and/or .EXE support files).

If a user has not purchased the Professional Edition of Microsoft Visual Basic versions 2.0 or 3.0 for Windows, or the Microsoft Professional Toolkit for Microsoft Visual Basic programming system version 1.0 for Windows, and the user receives a program containing an .FRM file written with the Professional Edition or Professional Toolkit, then the Visual Basic for Windows programming environment (VB.EXE) will not be able to load the program, and will display the following error message:

License file for custom control not found. You do not have

an appropriate license to use this custom control in the

design environment.

NOTE: Anyone who acquires a program in the form of an executable (.EXE) file that uses the custom controls from versions 2.0 or 3.0 of the Professional Edition of Visual Basic for Windows, or from version 1.0 of the Professional Toolkit for Visual Basic for Windows, will be able to run that program with no error.



MORE INFORMATION
The licensing file, VB.LIC is installed by the SETUP.EXE program included in the Professional Edition of Visual Basic for Windows, or the SETUP.EXE included in the Visual Basic for Windows Professional Toolkit. This licensing file is installed into the Windows' \SYSTEM subdirectory. You are NOT allowed to distribute this file with any application that you develop and distribute.

A custom control's startup code checks to see if this VB.LIC licensing file exists when the control is loaded into the environment. If the file does not exist, or is corrupt, the control aborts the loading process and displays the following Alter message box:

License file for custom control not found. You do not have

an appropriate license to use this custom control in the

design environment.

Additional query words: 1.00 2.00 3.00

Keywords: KB81458

-

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

© Microsoft Corporation. All rights reserved.