
Thanks for the reply.
METHOD COPY( BYVAL o AS ILine3D ) DIM lA AS IPoint3D DIM lB AS IPoint3D LET lB = o.B LET lA = o.A m_A.Copy( lA ) m_B.Copy( lB ) END METHOD ' Copy
METHOD COPY( BYVAL o AS ILine3D ) m_A.Copy( o ) m_B.Copy( o ) END METHOD ' Copy
#Compile Exe #Dim All ' ----------------------------------------------------------------------------- ' ----- Class Definition Class CPoint3D Instance m_x, m_y, m_z As Long ' ------------------------------------------------------------------------- ' ----- Interface Definition Interface IPoint3D : Inherit IUnknown Method Copy( ByVal o As IPoint3D ) m_x = o.X m_y = o.Y m_z = o.Z End Method ' Copy ' X Property Get X() As Long : Property = m_x : End Property Property Set X( l As Long ) : m_x = l : End Property ' Y Property Get Y() As Long : Property = m_y : End Property Property Set Y( l As Long ) : m_y = l : End Property ' Z Property Get Z() As Long : Property = m_z : End Property Property Set Z( l As Long ) : m_z = l : End Property End Interface ' IPoint3D End Class ' CPoint ' ----------------------------------------------------------------------------- ' ----- Class Definition Class CLine3D Instance m_A, m_B As IPoint3D Class Method Create() m_A = Class "CPoint3D" m_B = Class "CPoint3D" End Method ' Create ' ------------------------------------------------------------------------- ' ----- Interface Definition Interface ILine3D : Inherit IUnknown ' ----- PUBLIC Methods Method Copy( ByVal o As ILine3D ) m_A.Copy( o.A ) ' <--- [B]Error 414[/B] in [this file](51:028): ")" expected m_B.Copy( o.B ) End Method ' Copy ' ----- PUBLIC Properties ' Point A Property Get A() As IPoint3D : Property = m_A : End Property ' Point B Property Get B() As IPoint3D : Property = m_B : End Property End Interface 'ILine3D End Class ' CLine3D Function PBMain() As Long End Function
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: