Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Checking for DLL Registration Before Using CreateObject()
Hello All,
We have a DLL that we're trying to instantiate using CreateObject() and the instantiation works fine if the DLL is registered on the machine. However, we need to check to see if the DLL is registered on the machine before doing the CreateObject() to prevent the runtime error that occurs if the DLL isn't registered.
Does anyone know how to check this using code? I could use the FILE() function to see if the DLL exists in the System folder, but it still wouldn't ensure that it's registered.
Thanks in advance,
Ben Holton
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement