test.h public ref class test { private: //void InitializeInstanceFields(); public: String^ str; test() { String^ str = "string"; } } usingtest.ccp usingtest::usingtest { test^ instanceoftest = gcnew test; } String^ mystring = instanceoftest->str; // str is undefined }i have a class test with 1 member ,
this member gets an undefined value after instantiating the class. what am i doing wrong.
nattelip