HyperEngineer
Programmer
I don't know why this happens.
If I have a global variable, called out in the .h file above the class definition, and I use it in an if statement it causes a strange thing to happen.
If I have this code
I do not get the list of members when I type -> after the variable b.
However, if I have this
This will give me the list of members when I type -> after the b.
Also, if I do this, putting the global variable in parenthesis
This also works.
Any ideas?
If I have a global variable, called out in the .h file above the class definition, and I use it in an if statement it causes a strange thing to happen.
If I have this code
Code:
CString* b;
int strLen;
if (variable1 < ENUM_1)
return variable1;
strLen = b->GetLength();
I do not get the list of members when I type -> after the variable b.
However, if I have this
Code:
CString* b;
int strLen;
int variable2;
if (variable2 < ENUM_1)
return variable2;
strLen = b->GetLength():
This will give me the list of members when I type -> after the b.
Also, if I do this, putting the global variable in parenthesis
Code:
CString b;
int strLen;
if ((variable1) < ENUM_1)
return variable1;
strLen = b->GetLength();
This also works.
Any ideas?