Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class definition not found?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00625306
Message ID:
00625355
Vues:
9
>That worked!
>
>Can you explain why? I thought it was actually better to use the generic class (agent.control) so that when newer versions of that control came out, the generic class would point to the newer version and you would wind up instantiating the new version of the class.
>
>Also, why am I able to use the createobject("agent.control") syntax from my development machine and not the other?
>
>Thanks so much for your help!

Probably because there is no direct CLSID key reference under HKEY_CLASSES_ROOT\Agent.Control key. It contains CurVer key which points to

Agent.Control.2

The CLSIDs on my PC are under

Agent.Control.1
and
Agent.Control.2

Mine also does not like CREATEOBJECT("Agent.Control") syntax. :)

Probably to make it more generic you may retrive the
HKEY_CLASSES_ROOT\Agent.Control\CurVer key value from registry and then substitute it into your CREATEOBJECT() function. Then it will guarantee that the latest version on the control will be instantiated.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform