Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating ActiveX.
Message
From
27/08/2001 05:50:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Creating ActiveX.
Miscellaneous
Thread ID:
00549366
Message ID:
00549366
Views:
41
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
Next
Reply
Map
View

Click here to load this message in the networking platform