ActiveX controls can still be problematic wiht VFP as you have found. Sometimes, as you found, workarounds are possible. Hopefully these kinds of problems will be addressed and corrected in VFP7. :-)
Bill
>I had a problem with ActiveX controls using the Createobject() function. When I contacted the the developer of the product they said there was a problem in VFP with ActiveX controls. Their solutions was to use the Newobject() function with the ActiveX control in a VCX file. I previously had used Createobject() from a PRG file without the ActiveX control being in a VCX file. It worked fine on my development machine but game me the error you have when I tried it on the clients machine. I had previously registered the control properly on the client machine. However, when I used the NewObject() function and a VCX the problem disappeared.
>
>
>Simon White
>
>
>>>I have just done a fresh complete install of windows 2000. I installed pdqcom32.ocx using regsrv32, My code when compiled works fine and reads the serial port. When I try to open the form in VFP I get the message Class is not licensed. I searched on msdn but did not find anything.Anyone have any ideas ?
>>>
>>>TIA
>>>
>>>Ian
>>
>>Not positive on this one, but after registering the control manually, did you go into Tools/Options/Controls in VFP and make sure the control was in the list and checked? I've seen VFP do some "funny" things in this regard.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.