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";

  

What What's New in InterBase 15 What What's New in InterBase 15 See What's New in RAD Studio 13 Florence

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