
How to compile VB 5.0 CCE code.
Gunter Born has a useful site for examples of creating VB5CCE based components for use with WSH...
Born's Windows Scripting Host Bazaar
http://www.*-*-*.com/
WSHExtend, WSHForm, and WSHSystem are all based on VB5CCE.
The basic idea is that you create a UserControl that exposes methods for showing the various forms that you create. The UserControl is the "host" for the forms, You also need to devise a scheme for passing data from the script to the control and/or form and back to the script, otherwise the form isn't of much use to the script client, so I assume you've already done that.
Hopefully, you didn't use the UserControl itself to be the container window for text boxes, buttons, list boxes, etc. because that won't work for a script client. You have to use separate forms that the control (which itself is kept invisible) shows when asked. Look at Gunter's WSHForm control for a working example.
--
Michael Harris
I have downloaded Visual Basic 5.0 CCE, but unfortunatly the documentation
links on the site seem to be dead. So I was hoping that someone could answer
my question.
At the moment I have three froms created. When I press start these forms do
excatly what I want them to do. But I don't want to have to load up CCE
every time I want to run these forms. From a previous post I have been told
that you can "make" these forms in to OCX objects that can be run via
VBScript. However I can not get the make option in the file menu to become
un-greyed out.
Could somebody please tell me step by step how I can get these froms to be
compiled as a stand alone program or how to get them to run via VBscript?
And by step by step I mean treat me like somebody who probably doesn't know
what you are talking about :) .
Thanks.
Matthew