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":
I'm trying to pass this to a class named "Ground".Code:Public m_D3DDevice As Direct3DDevice8
Now in a form I have 2 obj created from the classes:
When I try to pass A.m_D3DDevice to B.Load like this (in the Form_Load method):Code:Dim A As New Main Dim B As New Ground
I get a method or data member not found error.Code:B.Load (A.m_D3DDevice)
![]()





Reply With Quote