Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 14th, 2003, 05:20 AM
hamfiles hamfiles is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Near Seattle
Posts: 11 hamfiles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question How Add rtfRichTextBox .ocx and .dll files

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-

Reply With Quote
  #2  
Old December 14th, 2003, 06:14 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,959 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 15 h 59 m 14 sec
Reputation Power: 802
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.

Reply With Quote
  #3  
Old December 14th, 2003, 06:38 PM
hamfiles hamfiles is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Near Seattle
Posts: 11 hamfiles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old December 14th, 2003, 10:32 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
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??

Reply With Quote
  #5  
Old December 17th, 2003, 02:12 AM
hamfiles hamfiles is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Near Seattle
Posts: 11 hamfiles User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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-

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > How Add rtfRichTextBox .ocx and .dll files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT