Class size in bytes in vb6
Posted on 2008-10-12
If I have the following class:
Private strFName as string
Private strLName as string
strFName = ""
strLNAme = ""
Public Sub SetValues(byval FirstName as string, byval LastName as string)
strLANme = LastName
Public Property Get FullName() as string
FullName = strfName & " " & strLName
As you can see, I can initialize the class:
Dim cthis as new Class1
cthis.SetValues "Armando", "Ruiz"
now, my question is: I want to send this class(object) by winsock and udp or tcp protocol, how do i determine the size in bytes of my class?