Using Enum in an interface
Hi ppl,
I want to use enumerations in an ActiveX DLL. This ActiveX DLL uses interfaces. I want to use those enumerations in properties, so the user is restricted from certain values. For example, now I have a property to which I assign an integer, but I have a check inside the property which checks if the input is 0,1,2 or 3. If not, the property raises an error. This is very difficult especially when another developer wants to use my DLL, because he has to read about 2000 lines in which all the valid inputs are given (and trust me, there are a LOT :D !)
Could anybody please help me with this?!? :confused: