M
ma
Hello,
I am new in .NET and I am writing my first program in c++/CLI on MSVC
2005.
I add a PictureBox to my form and then using its properties I change its
image property to one image from my hard disk. it generate the following
code for me:
this->image1->Image = (cli::safe_cast<System:rawing::Image^
but when I am running my program, it generate an exception with the error
that it couldn't find the specified objects in my resources. I checked the
resource and there is no resource with this name there.
What is wrong with this?
Best regards
I am new in .NET and I am writing my first program in c++/CLI on MSVC
2005.
I add a PictureBox to my form and then using its properties I change its
image property to one image from my hard disk. it generate the following
code for me:
this->image1->Image = (cli::safe_cast<System:rawing::Image^
(resources->GetObject(L"image1.Image")));
but when I am running my program, it generate an exception with the error
that it couldn't find the specified objects in my resources. I checked the
resource and there is no resource with this name there.
What is wrong with this?
Best regards