ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 C++ Builder AVI example
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

BReeves

USA
11 Posts

Posted - Feb 25 2016 :  05:49:00  Show Profile  Reply
Anyone have a Builder C++ Direct Show to AVI example app they might be willing to share?

I can't open the Delphi example projects with my version of Builder XE5.

Thanks

spetric

Croatia
308 Posts

Posted - Feb 26 2016 :  17:24:49  Show Profile  Reply
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
Go to Top of Page

BReeves

USA
11 Posts

Posted - Feb 27 2016 :  02:42:35  Show Profile  Reply
Thanks for the reply, I'm learning.

Just about the time Boarland released the first version of Builder I was trying to make the transition from DOS C to Windows. Almost bought Delphi but when I heard about Builder that was the end of my looking at pascal.
Go to Top of Page

xequte

38615 Posts

Posted - Mar 30 2017 :  23:34:52  Show Profile  Reply
Hi

For converting Delphi demos to C++, a user has recommended:

http://www.texttransformer.com/Delphi2Cpp_en.html



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: