Iam very new to Visual C++2010. Its my first project converting from C# to VC++2010.
Actually I have a headerfile for my strings and variables to use with my whole project. But I don't know, how to define or declare the similar for images...Iam facing the problem like the below...
For Strings....Below is good
error C3145: 'MyMainImge' : global or static variable may not have managed typeCode:#define MY_STR "My Value" public: System::Drawing::Image^ MyMainImge=System::Drawing::Image::FromFile("C:\\MyPrgCodes\\Images\\MyMenuImage.jpg");
Any Ideas for me? Thanks




Reply With Quote
