Information générale
Catégorie:
Codage, syntaxe et commandes
>>From your example, the COM server is registered locally because you are using the ProgID to create it.
>
>Right, but I didn't have to. I could have used the CLSID, and specified the machine in the second parameter (that was left empty in my example).
I am beginning to make the habit of putting the COM object's resident machine name in a variable (even if its the local PC) and always using
CreateObjectEX() instead of CreateObject(). Before I really get used to doing this, can you think of a reason why it might be a bad idea?
Thanks.
Précédent
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