>>Can you create a visual class with this object added and instantiate that class in your code?
>
>I tried
>
>
LOCAL upt as UPT.UptCtrl.1 OF upt.ocx
>* Next line causes error Object class is invalid for this container.
>upt = CREATEOBJECT('upt')
>upt.AboutBox()
>RETURN
>
>DEFINE class upt as olecontrol
> OleClass = 'UPT.UptCtrl.1'
>ENDDEFINE
>
>
>but got exception in createobject as shown in comment
I suggest to create a visual class. Can you add this control to a container based class?
If it's not broken, fix it until it is.
My Blog