LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Rich Textbox example doesn't work in Windows 7

Solved!
Go to solution

In the past I use the Rich Textbox example (\samples\userint\activex\richTextxbox.prj) in Windows XP (CVI 2010 SP1).

Now I noticed that this example doesn't work in Windows 7 64-bit because the ActiveX is not registered on the system (see attached error.jpg).

Isn't this control installed by CVI IDE itself?

How can I get this example working on my Win 7 64-bit machine?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 3
(8,946 Views)
Solution
Accepted by vix

Hi Vix

 

It looks like the Rich Textbox control component provided by one of the VB runtimes is no longer included by default with Windows 7.

 

I have been able to manually register the ActiveX control using Regsvr32 as described in the following Microsoft KB.

I was able to download the needed ActiveX control from here and from there you need to copy the .ocx ActiveX control to your C:\Windows\SysWOW64 directory. Open up a command prompt as administrator and run 'REGSVR32 RICHTX32.OCX'.

SysWOW64 is the 'Windows On Windows' emulation directory which is used for running 32 bit controls in a 64 bit environment.

 

I realise this isn't the best solution as it will make application deployment a little more complicated, another solution may be to use another RTF ActiveX control such as the one here: http://www.lebans.com/richtext.htm.

 

Thanks

Chris | Applications Engineer NIUK
Message 2 of 3
(8,920 Views)

Your suggestion works perfectly.

Thanks.

 

PS: the link in your post is wrong, because you included the last dot in the link. The right one is http://www.lebans.com/richtext.htm

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 3
(8,894 Views)