C++

Get Started with RAD Studio 10.2.1 using Sample Projects

  Guided Tour The Guided Tour is a step-by-step bubble pop-up tour that shows you how to build your first multi-device FireMonkey application using the FireUI Designer. Following the steps in the tour is a good starting point for anyone new to the FireMonkey framework. You…
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. struct T_thread_proc : TCppInterfacedObject{ TNotifyEvent f_ev_; struct T_sync_proc : TCppInterfacedObject{ TNotifyEvent f_ev_; …
C++

How to control "the system audio volume" of iOS

Author: h.mohri Use C++Builder 10.2 to control audio volume of iOS. I used the MPVolumeView class of iOS. The MPVolumeView class is declared in “iOSapi.MediaPlayer.hpp”. Include two files. #include #include Form design Arrange “Up” and “Down”…
C++

C++ Builder Header Dependencies

Why should you care about header dependencies in C++?  One reason is header dependencies can have an impact on building, refactoring, testing and on the structure of your software. And reducing header dependencies in C++ also reduces compile time dependencies – the…
C++

Try condition_variable using C++Builder(C++11).

Author: h.mohri std::condition_variable is a class for waiting for thread execution until the condition is satisfied.Used in combination with std::mutex. I tried the wait() function in std::condition_variable.This is combined with std::unique_lock. I thought of the…