visual studio 2010 - Enumeration variables can't be set to values, are always <undefined value> in C++/CLI -
i have global enumeration
enum class ccolour{ black, white, gold }; that has own headerfile ccolour.h wich included in stdafx.h
i trying fix bugs (edit: i'm done that) , encountered following:
#include "stdafx.h" using namespace system; int main(array<system::string ^> ^args) { [...] ccolour colour1 = white; [...] } i've set watch colour1 in visual studio, , have other functions using ccolour too, in watch displayed <undefined value> no type specifier. (and small lock next icon, don't know if that's relevant)
this seems strange because every function uses ccolour works fine.
can explain why , how fix it?
Comments
Post a Comment