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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 C++ Builder AVI example

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
BReeves Posted - Feb 25 2016 : 05:49:00
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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 30 2017 : 23:34:52
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
BReeves Posted - Feb 27 2016 : 02:42:35
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.
spetric Posted - Feb 26 2016 : 17:24:49
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