Print Page | Close Window

Referencing Type Libraries (Early Binding)

Printed From: Rocket Software
Category: AccuTerm Knowledge Base (read only)
Forum Name: Scripting & Automation
Forum Description: Customize and control AccuTerm using scripts and automation
URL: https://forum.asent.com/forum_posts.asp?TID=2700
Printed Date: March 26 2026 at 8:51pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: Referencing Type Libraries (Early Binding)
Posted By: kbdav
Subject: Referencing Type Libraries (Early Binding)
Date Posted: October 04 2018 at 4:09pm
I just discovered that we can early bind type libraries into the AccuTerm scripting interface. But it appears I am having some issues implementing it. For this particular one, I am attempting to set a reference to the library Microsoft VBScript Regular Expressions 5.5. Here is the code (it's at the top of the module, just under `Option Explicit`.

Option Explicit

'#Reference {3F4DACA7-160D-11D2-A8E9-00104B365C9F}#5.5#3#C:\Windows\SysWOW64\vbscript.dll#Microsoft VBScript Regular Expressions 5.5

One thing I am not sure of is the lcid#. I believe it to be 3. Here is the programming reference I am using from the AccuTerm2000 Scripting Language Reference Manual.

Reference Comment
Syntax
'#Reference {uuid}#vermajor.verminor#lcid#[path[#name]]
Description The Reference comment indicates that the current macro/module
references the type library identified. Reference comment lines
must be the first lines in the macro/module (following the global
Attributes). Reference comments are in reverse priority (from
lowest to highest). The IDE does not display the reference
comments.

Parameter ... Description
uuid ........ Type library's universally unique identifier.
vermajor .... Type library's major version number.
verminor .... Type library's minor version number.
lcid ........ Type library's locale identifier.
path ........ Type library's path.
name ........ Type library's name.

Example 
'#Reference {00025E01-0000-0000-C000-000000000046}#4.0#0#C:\PROGRAM FILES\COMMON FILES\MICROSOFT SHARED\DAO\DAO350.DLL#Microsoft DAO 3.5 Object Library



Replies:
Posted By: kbdav
Date Posted: October 04 2018 at 5:14pm
So after playing around with it for a while, I found I was able to add it by placing the reference above the Option Explicit line and restarting AccuTerm. However, now the line disappeared but the reference is still in memory. Not sure how I would go about removing the reference if I needed to, or how long it will even stay there (would I have to manually add it every x days, every time I restart, etc?)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net