Translate code from Delphi

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

Translate code from Delphi

Postby Lena » Mon Oct 03, 2016 7:09 am

Hi.
Please help mу translate this code from Delphi to C++Builder.

Code: Select all

procedure TFrmMain.TakePhotoFromCameraAction1DidFinishTaking(Image: TBitmap);
 { Assign the image retrieved from the Camera to the TImage component. }
begin
  TThread.Synchronize(TThread.CurrentThread,
        procedure
        begin
          try
            Image1.Bitmap.Assign(Image);
          except
          end;
        end);
end;
Lena
BCBJ Master
BCBJ Master
 
Posts: 429
Joined: Sun Feb 06, 2011 1:28 pm

Re: Translate code from Delphi

Postby rlebeau » Mon Oct 03, 2016 12:43 pm

Lena wrote:Hi.
Please help mу translate this code from Delphi to C++Builder.


This is covered in Embarcadero's documentation:

How to Handle Delphi Anonymous Methods in C++.
Remy Lebeau (TeamB)
Lebeau Software
User avatar
rlebeau
BCBJ Author
BCBJ Author
 
Posts: 1387
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA


Return to Technical

Who is online

Users browsing this forum: Bing [Bot] and 7 guests

cron