Results 1 to 2 of 2

Thread: How do I add a reference at run-time?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Burlingame, CA, USA
    Posts
    1

    Post

    Our shop has VBA code that is in need of an upgrade. I have done the upgrade using the reference MSADO15.DLL

    Our LAN auto-run programs have copied the DLL from the network to the local drives upon login and registered the DLL using REGSVR32.

    Can someone please tell me how can I add the reference programmatically using VB (instead of going to each PC and clicking on TOOLS, ADD REFERENCE, etc...) ?

    Thank you so much!

    ------------------
    Eben Yong
    [email protected]

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    All you have to do is compile your app with the same version of the DLL file and distribute the EXE as normal. The clients will be able to find the new DLL based on the Class ID, which will be the same on every computer if the same file was registered on each computer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width