By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,330 Members | 1,523 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,330 IT Pros & Developers. It's quick & easy.

enum always undefined

P: 2
Hello,

I have an enum in one of my classes
Expand|Select|Wrap|Line Numbers
  1. class Config
  2.   {
  3.   public:
  4.     SquareData bg;  //background
  5. ............
The enum looks like this
Expand|Select|Wrap|Line Numbers
  1. enum SquareData{
  2.     OPEN=0 , CLOSED , G_OPEN , G_CLOSED , //GUARANTEED-OPEN AND GUARANTEED-CLOSED
  3.     NJ_OPEN , NJ_CLOSED , NJ_G_OPEN , NJ_G_CLOSED , //NJ = non-join, these cannot be joined br Builders with others of their own kind 
  4.     IR_OPEN , IT_OPEN , IA_OPEN ,        //inside-room, open; inside-tunnel, open; inside anteroom, open
  5.     H_DOOR , V_DOOR ,   //horizontal door, varies over y-axis , vertical door, over x-axis(up and down)
  6.     MOB1 , MOB2 , MOB3 ,   //MOBs of different level            - higher is better
  7.     TREAS1 , TREAS2 , TREAS3 ,  //treasure of different value
  8.     COLUMN 
  9.   };
Whatever value I assign to that enum bg in the constructor of my class, it is always undefined (according to the debugger).

It works in a console application but it does not in a windows forms application

Till
Mar 14 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.