How to Package a File With OCX in Visual Basic 6.0


1. Complete writing the code for your application including any standard or user-created OCX files needed. Make a note of where on your computer you saved these extra OCX files. Test your Visual Basic application by pressing 'F5' to run the program. Complete any necessary debugging for errors.
2. Create an executable version by clicking 'File' and then 'Make [project].exe.' The 'project' name is the one you assigned at the start of programming and will appear in the list automatically. Let the program compile and save the result.
3. Click on 'Add-Ins' in the top level Visual Basic menu. Select 'Add-In Manager' in the drop-down list. From the list of available add-ins, click on the 'Package and Deployment Wizard.' In the bottom right corner of this window, add a checkmark to the box next to the line reading 'Loaded/Unloaded.' Click 'OK.'
4. Click the 'Package and Deployment Wizard' now in the Add-Ins list. Save the project when prompted. Select the first option on the next screen of the wizard labeled 'Package.' The next screen may remind you that some sources files are newer than the executable file and offer a chance to recompile. You must decide on the necessity of this based on your own code and choose 'Yes' or 'No.'
5. Choose the 'Standard Setup Package' on the next screen and then click 'Next.' Choose where to assemble the package and click 'Next.' Follow the next set of prompts until a list of the files included in the package appears. Any user-created controls held in OCX probably will not appear in the list.
6. Click 'Add' to the right of the file list, locate the additional OCX files on your computer, and add them to the package. Continue clicking 'Next' as you step through the remaining options until the 'Finish' button appears. The resulting setup file includes all the OCX needed to run the application

0 comments:

Post a Comment