Mirage Source
Method or Data Member Not Found. - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Method or Data Member Not Found. (/showthread.php?tid=2597)



Method or Data Member Not Found. - Junkyoner - 04-03-2009

I have the same error as this guy and I didn't feel like making a new topic since it would be a waste of space since I could post it right here if you would allow me. I just started programming and I was trying to develop and program my own game using Mse-Build 1 and all went well until I tried to compile everything to make a Client.exe

I got multiple "Method or Data Member Not Found" errors but i'll post one and if you can try and fix this for me i'll try to fix the other ones myself since than I might have a better idea when getting this error.

  • Public Sub AddText(ByVal Msg As String, ByVal Color As Integer)
    Dim s As String

    s = vbNewLine & Msg
    frmMirage.txtChat.SelStart = Len(frmMirage.txtChat.Text)
    frmMirage.txtChat.SelColor = QBColor(Color)
    frmMirage.txtChat.SelText = s
    frmMirage.txtChat.SelStart = Len(frmMirage.txtChat.Text) - 1
    End Sub


If you could help me fix this, I would greatly appreciate it, thank you very much for reading this as well.


Re: Method or Data Member Not Found. - Robin - 04-03-2009

I suggest you use MS4, not MSE1.

As for the error, what line does it highlight?


Re: Method or Data Member Not Found. - Tony - 04-03-2009

Why are you using MSE 1? Use MSE 4,

And what does it even highlight in that part?


Re: Method or Data Member Not Found. - Robin - 04-03-2009

Tony Wrote:Why are you using MSE 1? Use MSE 4,

And what does it even highlight in that part?

Just repeat what I said, why don't you? ;D


Re: Method or Data Member Not Found. - Junkyoner - 05-03-2009

Robin Wrote:
Tony Wrote:Why are you using MSE 1? Use MSE 4,

And what does it even highlight in that part?

Just repeat what I said, why don't you? ;D


Thanks for the pretty fast replies, so are you saying that if I switched to MSE4 that it might work?
Also, I used the first build because I didn't look on the forums for a newer version so that's my fault.

How would I be able to move everything from my mse1 to my mse4(because I edited the look of the mse1 client and added things to it.)

Oh and to answer the last part of your reply, it highlights
  • Public Sub AddText(ByVal Msg As String, ByVal Color As Integer)
    Dim s As String

    s = vbNewLine & Msg
    frmMirage.txtChat.SelStart = Len(frmMirage.txtChat.Text)
    frmMirage.txtChat.SelColor = QBColor(Color)
    frmMirage.txtChat.SelText = s
    frmMirage.txtChat.SelStart = Len(frmMirage.txtChat.Text) - 1
    End Sub

The red colored part of the line is the part that shows up highlighted.
Thank you


Re: Method or Data Member Not Found. - Tony - 05-03-2009

Oh, you either deleted your txtChat (Chatbox on frmMirage) or renamed it.


Re: Method or Data Member Not Found. - Junkyoner - 05-03-2009

Thats what I was thinking because I couldn't find my chat box but I was thinking it was probably also hidden on the form somewhere(if you know understand what im trying to say.)

Also I moved everything to MSE4 and the only errors i've got so far are these.
  • Line 925: Cannot load control txtChat; license not found.
    Line 971: Cannot load control Socket; license not found.

Im thinking thats the same exact problem I had with Mse1 but on Mse4.


Re: Method or Data Member Not Found. - Lochie - 05-03-2009

Right Click on the Tool Bar and add the components for a rich text box and the winsock.


Re: Method or Data Member Not Found. - Junkyoner - 05-03-2009

I looked in my components but I couldn't find neither, would I have to add them by any chance?
Also thank you for your help so far, I know it can be a pain since most of this is probably really easy to you but im new so hopefully i'll get better at this in the future, I try my best and practice a lot.


Re: Method or Data Member Not Found. - Tony - 05-03-2009

Junkyoner Wrote:I looked in my components but I couldn't find neither, would I have to add them by any chance?
Also thank you for your help so far, I know it can be a pain since most of this is probably really easy to you but im new so hopefully i'll get better at this in the future, I try my best and practice a lot.

That is so weird.. What version of Windows are you running?


Re: Method or Data Member Not Found. - Lochie - 05-03-2009

Components > Controls and tick the box for:

Microsoft Rich Textbox Control 6.0

&

Microsoft Winsock Control 6.0

They should be there if you are running a standard version of VB6

EDIT: I think you need the OCX / DLL files too: richtx32.ocx and mswinsck.ocx
If you don't have them then google them and you can download them for free.


Re: Method or Data Member Not Found. - Junkyoner - 05-03-2009

Fixed this.
I accidentally replaced lbl.Status and deleted the textbox on frmMirage so what I did is I re-extracted my mse-build 1 somewhere else and replaced my old mse-build1 frmMirage and frmSendData with the new ones I extracted and I fixed the error.

Thank you for your help, I greatly appreciate it and I hope I can be of some use in the future.
(Also im going to re-do everything with the newer version as Robin told me to do, as that is a better idea.)

Once again thank you!
Big Grin


Re: Method or Data Member Not Found. - Lochie - 05-03-2009

Cracked version shouldn't matter, I used all the 1's.

And as for you error.

go to frmMirage

find the object txtChat

It should be a the second box under the the largest box on the screen.

Click on that to display the properties, check that the name is set to txtChat and that it IS a Rich Text Box.


Re: Method or Data Member Not Found. - Junkyoner - 05-03-2009

Thanks Smile