Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject and OLE Automation classes
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00059265
Message ID:
00059278
Views:
42
Timothy,

As usual the Help is less than helpful.

BUT. . . I would say that the parameters appear to be *positional* and in this case the OLE-class is the THIRD, Perhaps you need it?

Good luck,
Jim N

>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform