I am using a dll within the usercontrol's project and need to pass the usercontrol as a paramenter (object). I am getting an error - Invalid use of base class name. Any ideas?
A bit more background: the dll creates a menu dynamically & I need to create a menu when clicking on the usercontrol.
If I define a variabla as an object and set the usercontrol as to the variable, the dll accepts it - eg
dim ctrlObject as object
set ctrlobject=me
call xdll(ctrlobject,"test"
within the xdll, the object's handle is used -ie ctrlobject.hwnd, but then the "error object does not support this property or method" is generated, bottomline is, how do I get the usercontrol's hwnd?
A bit more background: the dll creates a menu dynamically & I need to create a menu when clicking on the usercontrol.
If I define a variabla as an object and set the usercontrol as to the variable, the dll accepts it - eg
dim ctrlObject as object
set ctrlobject=me
call xdll(ctrlobject,"test"
within the xdll, the object's handle is used -ie ctrlobject.hwnd, but then the "error object does not support this property or method" is generated, bottomline is, how do I get the usercontrol's hwnd?