Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Failing to create an instance of the RichText control
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00942291
Message ID:
00950650
Views:
24
I tried it with the solution you showed and replaced the treeview control with the a richtext form. I tried both options but the problem is with richtx32.ocx itself.

I try the following command: createobject("richtext.richtextctrl.1")
I created a Visual Studio Installer setup to install and register the richtx32.ocx. The registration does something because of the error shown.
If I unregister it the error changes to "ActiveX component can't create object"

If Office is installed this call works fine. On the server, however, I don't have (or want) Office. I checked the cab-files and the richtx32.ocx is in there. Maybe I should install an Office application or VFP for that matter to see what happens. Because this is a production server I don't thing my customer would appreciate this....

Thanks,
Ron


>Did you put this control on a form or subclass visualy?
>
>>
>>it still is the same error: OLE error code 0x80040112: Class not licensed for use.
>>
>>I now have a test machine that used to have the richtx32.ocx working properly. I guess my testing ruined this. However, if I try to the solution of the article with the richtx32.ocx I still get the same error. If looked with google and found some installscripts (including from Microsoft) that installs the richtx32.ocx but I have not yet found the one that solves my problem. I get the idea that this control needs something more that just the presence of the riched20.dll and riched32.dll. If you have any suggestions please let me know.
>>
>>Thanks in advance,
>>
>>Ron Brahma
>>
>>
>>>What error do you get? Is it the same error that covered by mskb #192693?
>>>
Previous
Reply
Map
View

Click here to load this message in the networking platform