Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Visual Basic 6 Problem


FenixYT
 Share

Recommended Posts

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

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

> Have you installed the Eclipse Run Time Files? I don't think the RichTextBox control is shipped with Vb6

Yes, 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

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 Eclipse

B) From the "Run" prompt for Windows, type in regsvr32 /u RichTx32.ocx and hit Enter, then do regsvr32 /I RichTx32.ocx

C) If that doesn't work, make sure RichTx32.ocx is in your Windows System directory, and use a command prompt to do the following command

C:\Windows\SysWoW64\regsvr32 C:\Windows\System32\RichTx32.ocx
Link to comment
Share on other sites

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

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.0

Hit OK and compile
Link to comment
Share on other sites

Download this [http://www.canadianparamedicjobs.ca/updater/eclipseruntimes.zip](http://www.canadianparamedicjobs.ca/updater/eclipseruntimes.zip)

Unzip the installer to your desktop

Right click the Run First! installer and Run AS Administrator

Let them install properly

Go to C:\Program Files (x86)\Microsoft Visual Studio\VB98\ Right Click on VB6.EXE and Run as Administrator

In VB6 to go File > Open and open your Client

Add in your RichText32 Component (Go to Project > Components > Check box in Microsoft Rich Textbox 6.0)
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

> 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.tlb

Give 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

> 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...