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

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


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

Related posts

2021 Annual C++ Developer Survey "Lite" by ISOCpp.org - Results summary


Using C++17 Algorithms Library Parallel Sorting with C++Builder 10.4 Sydney for Win32 and Win64


C++Builder and Platforms Support


What's New in the GetIt Package Manager - June 2020

Leave a Reply

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