Hi,
Yes, you're right, you can not open dpr project in Builder, but you can open pas file, where you can see Pascal source and form design.
So, some conversion steps would be:
1. Create new project (VCL form).
2. Open demo pas file.
3. Click design tab and select components from "pas" form.
4. Copy selected components and past them to C++ form.
5. Now comes the hard part: translete Pascal code to Delphi.
Actually, you can copy pascal code and convert it to C++. For example:
// Pascal code - event on click
procedure TForm1.Stop2Click(Sender: TObject);
begin
ImageEnView1.IO.DShowParams.Stop;
ImageEnView1.IO.DShowParams.Disconnect;
ImageEnView1.Update; // this will show the background image
end;
// C++ code - event on click
void __fastcall TForm1::Stop2Click(TObject *Sender);
{
ImageEnView1->IO->DShowParams->Stop();
ImageEnView1->IO->DShowParams->Disconnect();
ImageEnView1->Update(); // this will show the background image
}
It will be little tedious at first, but after some time you''ll be able to convert the code on the fly. It's not so hard to translate Pascal code to C++ because Pascal is an elegant language, but translating C++ code to Pascal may be quite a fatigue.
HTH,
Siniša