|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a form that receives text from a textfile, and inputs it into a RichTextBox. Here is the code I'm using for this:
dim strMyText as String Open C:\"[myfile_name_here]" For Input as #1 strMyText = Input$(LOF(1), 1) frmText.rtfReceiveText.TextRTF = strLog Close #1 This works fine when I compile it and run it on my PC. But when I try to run it on another machine, it returns the RICHTX32.OCX error, because I did not add the RichTx32.ocx and RichEd32.dll files. I do not know how to add these files. Does anyone know the proper way to add them? I am using VB 6.0. Thanks in advance for any replies, -Hamfiles- |
|
#2
|
|||
|
|||
|
If you build an setup installer for your program it should include the rtf control and install it properly on the target machine.
You can register dll's using the regsvr32.exe program but there may be licensing issues if you try to register the controls by hand. |
|
#3
|
|||
|
|||
|
I'm getting an out of date dependancy error using the package and deployment wizard. I'm not sure, but it looks like it did find the .ocx file needed. I haven't run it yet. If it installs OK on this machine, maybe it will work on the other ones. Thanks for your help.
-Hamfiles |
|
#4
|
|||
|
|||
|
hamfiles!U must validate your install program package has this ocx file or dll file!..Can u tell me which kide of you used to make install program??
|
|
#5
|
|||
|
|||
|
Thanks Doug G. and Cleverpig. I did the lazy thing and used the package and deployment wizard, and it works properly at work now. There are still alot to changes to make, so it won't be implemented yet. They bought VB.Net for me to use at work, and I am learning as I go. I can't convert my project from VB 6 to .Net because my VB 6 is a student version and has no lisence. So I will be making the project totally from VB.Net, which is OK w/ me. Best way to learn is to do.
Thank you both for your help. -Hamfiles- |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > How Add rtfRichTextBox .ocx and .dll files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|