|
-
September 29th, 2007, 03:22 PM
#5
Re: Use enum from another class?
It looks like SetContainerType is expecting an int and not ContainterTypes as its parameter, so, as Mutant_Fruit suggested just change the parameter type from int to ContainerTypes and you won't need to cast.
Also you should consider using singular for the enum type name, e.g., ContainerType instead of ContainerTypes, http://msdn2.microsoft.com/en-us/lib...01(VS.71).aspx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|