Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Scripting & Automation
  New Posts New Posts RSS Feed - Referencing Type Libraries (Early Binding)
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedReferencing Type Libraries (Early Binding)

 Post Reply Post Reply
Author
Message
kbdav View Drop Down
Newbie
Newbie


Joined: July 12 2016
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote kbdav Quote  Post ReplyReply Direct Link To This Post Topic: Referencing Type Libraries (Early Binding)
    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
Back to Top
kbdav View Drop Down
Newbie
Newbie


Joined: July 12 2016
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote kbdav Quote  Post ReplyReply Direct Link To This Post 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?)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.