FenixYT Posted July 26, 2014 Author Share Posted July 26, 2014 Hello, i'm having a problem with vb6 on windows 7.Already instaled in 2 different computers and getting the same error over and over again, always when i try to compile I get an error message saying ''Method or data member not found'' and the highlighted text is always a ''.text ='' , its not a variable problem because i tried to download EO 3.0 without any client side edits, and I can't compile it.I also get some errors when I open Client-side in VB6.Here's a pic:[http://imgur.com/1h3n8rq](http://imgur.com/1h3n8rq)EDIT :Here's some more pics from the startup error:[http://imgur.com/wiF36El,qPQTWBp,df2ReND#0](http://imgur.com/wiF36El,qPQTWBp,df2ReND#0)[http://imgur.com/wiF36El,qPQTWBp,df2ReND#1](http://imgur.com/wiF36El,qPQTWBp,df2ReND#1)[http://imgur.com/wiF36El,qPQTWBp,df2ReND#2](http://imgur.com/wiF36El,qPQTWBp,df2ReND#2) Link to comment Share on other sites More sharing options...
deathtaker26 Posted July 26, 2014 Share Posted July 26, 2014 try .Text instead of .text, programming languages are case sensitive… at least I'm sure vb6 is, i haven't touched it in so long. Link to comment Share on other sites More sharing options...
FenixYT Posted July 26, 2014 Author Share Posted July 26, 2014 I can't change the ''.text'' to ''.Text'', when i deselect it, it returns to ''.text''I want to keep going with my project, but if I can't compile, i can't make a decent game Link to comment Share on other sites More sharing options...
Stach Posted July 26, 2014 Share Posted July 26, 2014 Make sure the component is added. Go to Project > Components and make sure "Microsoft Rich Textbox Control 6.0" is selected. Link to comment Share on other sites More sharing options...
FenixYT Posted July 26, 2014 Author Share Posted July 26, 2014 When i select it, i get a message that says ''Object library not registered'', however i did installed VB 6 SP6. Link to comment Share on other sites More sharing options...
hisherwin Posted July 26, 2014 Share Posted July 26, 2014 Are you guys sure that it is RichTextbox?And VB6 is not Case Sensitive Cap'N Crest.. What exactly is the rtbBookText? a Textbox or a RichTextbox?You can see it here: [http://prntscr.com/46h3ir](http://prntscr.com/46h3ir)and Make sure that rtbBookText exist.. Link to comment Share on other sites More sharing options...
Stach Posted July 26, 2014 Share Posted July 26, 2014 > When i select it, i get a message that says ''Object library not registered'', however i did installed VB 6 SP6.Well then that can be your problem. Register the library. Link to comment Share on other sites More sharing options...
abhi2011 Posted July 26, 2014 Share Posted July 26, 2014 Have you installed the Eclipse Run Time Files? I don't think the RichTextBox control is shipped with Vb6 Link to comment Share on other sites More sharing options...
AnonymousProgrammer Posted July 26, 2014 Share Posted July 26, 2014 If you need an answer for this outdated language, then so be it. It has nothing to do with the Library files. You need to use ".Caption" if your using a label seeing as there is no objective property "text" for the label control in Visual Basic 6. Link to comment Share on other sites More sharing options...
FenixYT Posted July 26, 2014 Author Share Posted July 26, 2014 > Have you installed the Eclipse Run Time Files? I don't think the RichTextBox control is shipped with Vb6Yes, i did, the dll file for Rich Text Box is at C:Eclipseruntimes folder, and its not a code problem, as i download the original EO3.0 without any edits and can't recompile it, Link to comment Share on other sites More sharing options...
Rob Janes Posted July 26, 2014 Share Posted July 26, 2014 Your RichTx32.dll likely needs to be reregistered as it's not properly loading the control in VB6 when you load up the project(s).You have two options:A) Install the Runtimes for EclipseB) From the "Run" prompt for Windows, type in regsvr32 /u RichTx32.ocx and hit Enter, then do regsvr32 /I RichTx32.ocxC) If that doesn't work, make sure RichTx32.ocx is in your Windows System directory, and use a command prompt to do the following commandC:\Windows\SysWoW64\regsvr32 C:\Windows\System32\RichTx32.ocx Link to comment Share on other sites More sharing options...
Rob Janes Posted July 26, 2014 Share Posted July 26, 2014 Rather make sure it's in your Windows/System32 Directory ;) Link to comment Share on other sites More sharing options...
FenixYT Posted July 26, 2014 Author Share Posted July 26, 2014 Thanks for the help Rob, but same error :When I ran the first command : [http://imgur.com/WSejXgj,2UnV2DR,LT9PrCA#0](http://imgur.com/WSejXgj,2UnV2DR,LT9PrCA#0)When I ran the second command : [http://imgur.com/WSejXgj,2UnV2DR,LT9PrCA#1](http://imgur.com/WSejXgj,2UnV2DR,LT9PrCA#1)After the successful message, when I tried to compile again, same error, same line : [http://imgur.com/WSejXgj,2UnV2DR,LT9PrCA#2](http://imgur.com/WSejXgj,2UnV2DR,LT9PrCA#2) Link to comment Share on other sites More sharing options...
Rob Janes Posted July 26, 2014 Share Posted July 26, 2014 Now that you've successfully reregistered the control (the second command you ran)You need to re-add the control to your project, in VB6, right click on the tool bar (where you'd select labels or buttons etc) and select Components or go to the Project Menu at the top - > Components and put a checkbox in Microsoft Rich Textbox Control 6.0Hit OK and compile Link to comment Share on other sites More sharing options...
FenixYT Posted July 26, 2014 Author Share Posted July 26, 2014 I get an error, when I hit apply or ok.[http://imgur.com/rAm4ulW](http://imgur.com/rAm4ulW)I really have no idea of whats happening as i'm trying in 2 computers one with Win 7 64 bits and other with 7 32 bits. Link to comment Share on other sites More sharing options...
Rob Janes Posted July 26, 2014 Share Posted July 26, 2014 Take the RichTx32.ocx from your Eclipse folder and place into these 2 locationsC:\Windows\System32C:\Windows\SysWow64\Then do the regsvr32 /u RichTx32.ocxThen try adding the RichTextBox to your VB6 components Link to comment Share on other sites More sharing options...
FenixYT Posted July 26, 2014 Author Share Posted July 26, 2014 Already had done that, i get the same windows compatibility error. Link to comment Share on other sites More sharing options...
Rob Janes Posted July 26, 2014 Share Posted July 26, 2014 Download this [http://www.canadianparamedicjobs.ca/updater/eclipseruntimes.zip](http://www.canadianparamedicjobs.ca/updater/eclipseruntimes.zip)Unzip the installer to your desktopRight click the Run First! installer and Run AS AdministratorLet them install properlyGo to C:\Program Files (x86)\Microsoft Visual Studio\VB98\ Right Click on VB6.EXE and Run as AdministratorIn VB6 to go File > Open and open your ClientAdd in your RichText32 Component (Go to Project > Components > Check box in Microsoft Rich Textbox 6.0) Link to comment Share on other sites More sharing options...
FenixYT Posted July 26, 2014 Author Share Posted July 26, 2014 Same error ''object library not registered''.I'm really getting sad :l Link to comment Share on other sites More sharing options...
Rob Janes Posted July 26, 2014 Share Posted July 26, 2014 Run command prompt as Administrator (right click CMD > Run as Administrator)Type this in command prompt!cd C:\Windows\SysWOW64\ regtlib msdatsrc.tlb Link to comment Share on other sites More sharing options...
abhi2011 Posted July 27, 2014 Share Posted July 27, 2014 If what Rob last said doesn't work (It should) then try this. Open up the .vbp file in notepad. (Open up notepad and drag the file into it). Find the line which references RichTx32.ocx Remove that entire line. Save from notepad and reload the .vbp. Open up VB6 and add the Rich Text Box Control back again.**In case you don't know how to add back in the control:** Right click the toolbox. The toolbox is the window on the left of the VB6 IDE.Hit components. A new window will pop up.Find Microsoft Rich Text Box Control and click the checkbox. Hit apply or ok or w.eTry compiling. P.S you may have saved any forms that were referencing the control. If this is the case then that form has been corrupted and the rich textbox control would have been replaced by a picturebox. Get a fresh copy of the source. Link to comment Share on other sites More sharing options...
FenixYT Posted July 27, 2014 Author Share Posted July 27, 2014 > Open your Windows Explorer and go to> > > > C:\Windows\Microsoft.NET\Framework\v4.0.30319\> > > > Find the file> > regtlibv12.exe> > > > Copy and Paste that into your C:\Windows\SysWOW64> > > > Open Command Prompt as An Administrator> > > > Type> > > > cd C:\Windows\SysWOW64\> > regtlibv12 msdatsrc.tlbGive this man a medal, this worked like a charm!After this command, no more startup errors neither compile.For everyone that is having this issue, just follow what Rob posted here.I'm really, really happy and grateful about all the help.Thanks everyone! Link to comment Share on other sites More sharing options...
FenixYT Posted July 27, 2014 Author Share Posted July 27, 2014 > If what Rob last said doesn't work (It should) then try this. > > Open up the .vbp file in notepad. (Open up notepad and drag the file into it). Find the line which references RichTx32.ocx Remove that entire line. Save from notepad and reload the .vbp. Open up VB6 and add the Rich Text Box Control back again.> > **In case you don't know how to add back in the control:** > > Right click the toolbox. The toolbox is the window on the left of the VB6 IDE.> > Hit components. A new window will pop up.> > Find Microsoft Rich Text Box Control and click the checkbox. Hit apply or ok or w.e> > Try compiling. > > P.S you may have saved any forms that were referencing the control. If this is the case then that form has been corrupted and the rich textbox control would have been replaced by a picturebox. Get a fresh copy of the source.Thanks Abhi, already solved the problem with Rob tutorial!Thanks anyway :) Link to comment Share on other sites More sharing options...
abhi2011 Posted July 27, 2014 Share Posted July 27, 2014 Great. Btw why didn't anyone notice this was posted in tutorials? Link to comment Share on other sites More sharing options...
FenixYT Posted July 27, 2014 Author Share Posted July 27, 2014 > Great. Btw why didn't anyone notice this was posted in tutorials?Didn't found the exact section for that :l Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now