Click to See Complete Forum and Search --> : Passing VB object


Gary Kirkham
March 22nd, 2001, 08:59 AM
I am attempting to write a DLL in VC++ that can be called by Visual Basic. I have written functions that accept and return types such as int, float, double, etc., with no problem. I need to write a function that accepts a Visual Basic user defined class (object) as an argument. This class is a collection class that contains other VB classes. Is it possible to pass a VB object to a VC++ function? If so, how do I do this?