I have an ActiveX EXE project that has 3 classes that I want to use in my main project. All 3 classes are set to:
DataBindingBehavior=0 - vbNon
Instancing=3 - SingleUse
Persistable=0 - NotPersistable
When I try to compile like this I get the following error:
"Variable uses an Automation type not supported in Visual Basic."
But, if I set 2 of my classes Instancing properties to 1 - Private, it compiles just fine. Am I doing something wrong? Shouldn't I be able to have 3 exposed classes in my ActiveX EXE? I have tried setting each of the 3 classes to 3 - SingleUse, and as long as only 1 is set to SingleUse and the other 2 are Private, it compiles just fine, so it doesn't seem to matter which class has which property, just that only 1 has something besides Private. Any ideas experts?