View Single Post
  #2  
Old 05-14-2004, 08:06 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
Script [1] hosting environments such as Visual Build Pro, Internet Explorer, WSH, etc., are inherently late-bound and typeless. Rather then setting a reference to a type library, you simply create the component you need from its ProgId and call its methods.

Many components are callable from such a script environment (any class that implements IDispatch and uses Automation-compatible method signatures), including the FileSystemObject [2], MSXML [3], the VBP objects, etc. Start at 'script' in the help index for all the ways you can incorporate scripting into your VBP projects and for links to additional documentation on using scripting in general. The Script.bld and Advanced.bld samples demonstrate this, as well as many of the FAQs [4].

When using VBScript [5], you can use Option Explicit to require variable declaration before use. Finally, since any VB6 ActiveX DLL project is script-compatible, you can continue to create your custom components in Visual Basic and call them from script in VBP.

[1] http://msdn.microsoft.com/library/de...entid=28001169
[2] http://msdn.microsoft.com/library/de...jsfsotutor.asp
[3] http://msdn.microsoft.com/library/de...mloverview.asp
[4] http://www.kinook.com/Forum/forumdisplay.php?forumid=13
[5] http://msdn.microsoft.com/library/de...riVBScript.asp
Reply With Quote