Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating ActiveX.
Message
De
27/08/2001 05:50:37
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Creating ActiveX.
Divers
Thread ID:
00549366
Message ID:
00549366
Vues:
49
Hello
I have problem when create object from Activex
When I directly call : o=CREATEOBJECT("sapi.SpSharedRecoContext") its work good.

But I need redefine "Recognition" event. So I create class

Define class "_sapi" As OLECONTROL
Procedure Recognition
Lparameters StreamNumber, StreamPosition, RecognitionType, Result
endproc
Enddefine

Now.. my CREATEOBJECT("_SAPI") or ADDOBJECT("_SAPI","sapi.SpSharedRecoContext") fail.. with error message

"Object class is invalid for this container."

Any ideas
Thanks
Denis
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform