Yea, I got the same.... Use the file name if you can. That works no problem. picBox->Image = Image::FromFile(S"filePic.bmp")
F
foobar
@foobar
Posts
-
problem with Picturebox / windows.h -
problem with Picturebox / windows.hok - here is a workaround.... ////REMOVE the code the IDE gave you!!!! //this->pictureBox1->Image = (__try_cast(resources->GetObject(S"pictureBox1.Image"))); ///ADD This line this->pictureBox1->Image = Image::FromFile(S"sm_titan.bmp"); This can get all crazy with a file name so here is an example with a image directory and numbered images: pictureBox1->Image = Image::FromFile( string::concat( directory::GetCurrentDirectory(), s"\\image\\image", imageNum.ToString(),s".bmp")); Hope it helps!
-
problem with Picturebox / windows.hRead this...http://www.kbalertz.com/kb_888267.aspx said ifdef then undef on the getobject.... it is an issue with including windows.h If it works, let me know. I get a runtime error