Jim,
that sounds right; and if so, he can do
this.addobject("oTest","olecontrol","FoxOle.Test")
Hank
>>I created an OLE Automation DLL that has one public OLE class. If I do the following, I get "Object class is invalid for this container."
>>
>>This.AddObject("oTest", "FoxOle.Test") && This is a form object
>>
>>I am allowed to do this which works:
>>
>>oTest = CREATEOBJECT("FoxOle.Test")
>>
>>Can I use AddObject to add an OLE Automation class? Below is an excerpt from VFP's on-line help for AddObject:
>>
>>Syntax
>>
>>Object.AddObject(cName, cClass [, cOLEClass] [, aInit1, aInit2 ...])
>>
>>Arguments
>>
>>cName Specifies the name used to reference the new object.
>>cClass Specifies the class of the object to add.
>>cOLEClass Specifies the OLE class of the object to add.
>>aInit1, aInit2 Specifies parameters passed to the Init event of the new object.
>Timothy,
>
>The only container class in VFP that can hold an activex server obhject is the OLEControl, you would need to create an OLEControl class definition that had your VFP server class in it and then add that OLEContorl to yoru form.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only