Passing objects to methods
I'm trying to pass a object of the Direct3DDevice8 type from one class to another. I declared the object like so in class "Main":
Code:
Public m_D3DDevice As Direct3DDevice8
I'm trying to pass this to a class named "Ground".
Now in a form I have 2 obj created from the classes:
Code:
Dim A As New Main
Dim B As New Ground
When I try to pass A.m_D3DDevice to B.Load like this (in the Form_Load method):
Code:
B.Load (A.m_D3DDevice)
I get a method or data member not found error.
:confused: