LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Help Needed with Active X RichTextBox

Hi do i need any other files or programs to use the active X richtextbox?

I seem to have some problems.

Problem 1: Originally in a new .UIR, i tried inserting activeX>>microsoft rich textbox control 6.0 and i got an error: "ActiveX control error". I tried it on another pc and it works real fine. so i saved the .uir and bring it back to my pc and it seems to work as in i can see the richtextbox on my pc and be able to write richtextbox commands in *.c.

Problem 2: I can't edit the richtextbox on my pc at all or even the panel that has the richtextbox. If i just double click to try to get the menu, i will get a message "This ActiveX control does not support persistance. You will not be able to copy, edit or save this control."

Problem 3: When I save the .uir i will have a warning "this file contains one or more ActiveX controls that could not be loaded on this computer.....converted to indicator control.......make sure properly installed....if you save the file in this state, original contents will be lost." In short, i can't make any changes to the .uir be it in the same panel, different panels, different controls, etc..

Problem 4: not able to see any help for any rich text commands.

i seem to think that i need some other stuff. Any help or advice ??

Thanks

Cheers
AL
0 Kudos
Message 1 of 5
(4,198 Views)
Hi AL,

It sounds like Rich Text ActiveX control is either not installed, or missing some required components. There is a page on Microsoft Support that describes the required files for many of the MS ActiveX controls.

For the Rich Text box you will need Richtx32.ocx, Comcat.dll, and RichEd32.dll in the windows\system32 directory. The Richtx32.ocx will need to be registered as an ActiveX control using regsvr32.

This should be enough to get you up and running on any computer.

Scott Y
NI
0 Kudos
Message 2 of 5
(4,182 Views)
Hi Scott,

i already have those mentioned files in microsoft already installed on my pc. i'm not sure why i'm seeing these kinda problems but apparently it is not system dependent. I have tried it on windows 2000, windows NT and windows XP and both produce the same problems. Do i need visual studio (or other visual programs like C/C++/Basic...etc) installed? This is something that i have noticed.

Here is a simple problem that i always have.

1. System without any visual programs. Create a new panel and insert active X - Microsoft Rich TextBox Control. This will show a popup msg "ActiveX Control Error"

2. But using the above procedure on another system with Visual C/C++ installed can allow me to create this richtext box. And if i save this file on a disk and save it to the pc without visual.. i can see the textbox but still am unable to edit.

Hope this explains things a bit clearer. So besides the mentioned files, do i need a visual program installed together with LabWindows to use the richtext box or it is not necessary but labwindows requires some other files?

Thanks

Cheers
AL
0 Kudos
Message 3 of 5
(4,179 Views)
Hi AL,

I see the same behavior here. My computer with Visual Studio it works, but I cannot make the ActiveX controls work on a machine that has never had Visual Studio on it. I receive the same error.

Taking a look at MSDN there are a couple documents like this one hinting that you need Microsoft Office 97 Developer Edition to develop with the RichText ActiveX control.

The way I read this document, ODE97 and apparently Visual Studio install some additional registry keys and other items that allow this control to operate in development mode. Without knowing the details of MS's licensing I am not able to say much more. I would suggest contacting Microsoft and asking them what sort of software and license you need to develop with the RichText control.

Scott Y
NI
0 Kudos
Message 4 of 5
(4,166 Views)
Hi Scott,

Thank you very much for answering my questions. At least now i know. 😃

Regards
AL
0 Kudos
Message 5 of 5
(4,153 Views)