G
Guest
Hi all,
We have a public enumeration in one module of our code. It's declared like
this:
Public Enum CardReaderState as Integer
Waiting_For_Card = 0
Card_In_Reader = 1
End Enum
(of course, there are enumerations in the real code). All has been working
fine in Visual Studio 2003.
Now we're slowly migrating to VS2005. One of my collegues is checking out
modules and changing small things (making sure all constants are declared
with a type, etc) and checking that back into SourceSafe. In the meantime,
I'm continuing support for the 2003 version of the program (with the changes
he's made).
Somtime in the last week or so (and I'm not at ALL convinced that it's
related to the 2005 move) modules in my code don't recognize this public
enumeration unless I either 1) fully qualify the name of the enumeration
(i.e., instead of using CardReaderState.Waiting_For_Card, I have to use
sg.modControlBoardComm.CardReaderState.Waiting_For_Card) or 2) I can do an
"imports sg.modControlBoardComm" at the top of the other module.
I can't figure out why this public enumeration is no longer visible to other
modules. I thought that was the whole reason for "public". Help?
We have a public enumeration in one module of our code. It's declared like
this:
Public Enum CardReaderState as Integer
Waiting_For_Card = 0
Card_In_Reader = 1
End Enum
(of course, there are enumerations in the real code). All has been working
fine in Visual Studio 2003.
Now we're slowly migrating to VS2005. One of my collegues is checking out
modules and changing small things (making sure all constants are declared
with a type, etc) and checking that back into SourceSafe. In the meantime,
I'm continuing support for the 2003 version of the program (with the changes
he's made).
Somtime in the last week or so (and I'm not at ALL convinced that it's
related to the 2005 move) modules in my code don't recognize this public
enumeration unless I either 1) fully qualify the name of the enumeration
(i.e., instead of using CardReaderState.Waiting_For_Card, I have to use
sg.modControlBoardComm.CardReaderState.Waiting_For_Card) or 2) I can do an
"imports sg.modControlBoardComm" at the top of the other module.
I can't figure out why this public enumeration is no longer visible to other
modules. I thought that was the whole reason for "public". Help?