How to remove MISSING library

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have optional library. It will be used only in some cases. So that I
don't include this library in my setup package. But if this library is
missing on destination PC, it will cause the serious problem (for example, I
can not even open a recordset using DAO).

How can I detect that library is missing and remove it from "References..."
list ?

Thanks for any help.
Quang
 
Take a look at what MichKa has at
http://www.trigeminal.com/usenet/usenet026.asp as a starting point.

If you cannot register the reference because it doesn't exist on the user's
machine, the References collection does have a Remove method. However, if
you suspect you're using references that won't exist on the user's machine,
you probably shouldn't be using them in the first place. Try using Late
Binding instead of Early Binding if possible. (Obviously, without knowing
what references you're concerned about, I can't give any more specific
advice)
 
Thanks for help.

I intend to use Outlook Redemption (www.dimastr.com/redemption). It is not
free library, so that I don't put it on my setup package. My software can
send email via Outlook Express, Ms Outlook and CDO. There are some obstackes.
For Ms Outlook, there will be security diaglog appeared which stop sending
process for 5 seconds. Even I can simulate clicking on that dialog box after
5 seconds, but this solution is not good way. CDO won't work if Mail Server
configured to force authentication before sending. So, Outlook Redeption is
needed in this case.

I have put the registration of Outlook Redemption at the end of the
registration list on "References...", put the code using Outlook Redeption in
separate module. But if Outlook Redemption is missing, even OpenRecordset
function of DAO can not work (raise error).

Regards
Quang
 
Any missing reference can impact the use of the rest of the references.

I'm not familiar with Outlook Redemption (other than knowing what it does).
If you can use it with Late Binding, you should be able to avoid your
problems.
 
Back
Top