open image

Hi, i have this:

1
2
3
4
5
6
7
8
9
10
11
void __fastcall TERDmarker::openimage21Click(TObject *Sender)
{
   TPicture * pct = new TPicture;
	Graphics::TBitmap *bmpPicture = new Graphics::TBitmap;

	bmpPicture->LoadFromFile(L"person.bmp");   // get rid of l and see what happens
	pct->Graphic = bmpPicture;


	LecERD->Picture = pct;
}


I would like to know, instead of loading person.bmp, how can i execute a opendialog option so the user can choose what they want....

Thanks in advance
this should be in the windows programming section
Topic archived. No new replies allowed.