Question Structure being 'Exposed'

schmeet

Member
Joined
Jul 19, 2010
Messages
8
Programming Experience
Beginner
Hi Guys,

So. In my project I have a module called Functions where I have all my functions, suprisingly. I also have in there a few structures that I have made.

One of those structures is called Point3D which is just used for storing x,y and z values.

It looks like this:

VB.NET:
Module Functions

'...More stuff in here...

Public Structure Point3D
        Public X As Double
        Public Y As Double
        Public Z As Double
    End Structure

'...More stuff in here...

End Module

I then have a class for a popup window. I want to pass a Point3D variable to the class using the constructor, so I do this using:

VB.NET:
Public Class EditBuildings

    Public Sub New(ByVal Point As Point3D)
        MyBase.New()
        InitializeComponent()
    End Sub

End Class

However, apparently I am exposing type 'Functions.Point3D' outside the project through class 'EditBuildings'.

But I dont get it because the structure is public the class is public and the constructor is public. If I make the constructor private then I can use it, but then I cant access the constructor from other forms. Please help... :(
 
Back
Top