#include #include void __fastcall TForm1::Button1Click(TObject *Sender){ String Path = ExtractFilePath(Application->ExeName); Path = Path + "images\\map1.jpg"; std::auto_ptr<TJPEGImage> JPG(new TJPEGImage); JPG->LoadFromFile(Path); Image1->Picture->Bitmap->Assign(JPG.get());}
Image1->Picture->LoadFromFile(Path);