Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
C++

Implement CreateAnonymousThread with BCC32.

Author: h.mohri

C++Builder 10.2 BCC32 can not write lambda. 
So write an implementation in Invoke() with TCppInterfacedObject<>.

Event prepared for calling with TThread::Synchronize().

Call TThread::CreateAnonymousThread() with a TButton event.

Place the TButton and TActivityIndicator

Build execution.

When you click the Button1, until the thread is finished "ActivityIndicator1->Animate = true";

  

See What's New in 12.2 Athens See What's New in 12.2 Athens Dev Days of Summer 2-24

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES