Programming

Posted by on in Programming
How to handle data in TFunc with C++Builder(BCC32) When dealing with TFunc in BCC32(C++Builder 10.2). For example, suppose Delphi side has the following function. type Tproc_func = record {When TFunc is an argument as shown below. } function func1(func: TFunc<Integer, String>):String; end; implementation function Tproc_func.func1(func: TFunc<Integer, String>): String; begin Result := func(CurrentYear); end; The func1 function has an argument of TFunc.In this case, Delphi...
Posted by on in Programming
Get Started with RAD Studio 10.2.1 using Sample Projects With RAD Studio 10.2.1, we provide a number of sample projects to help you get started building Windows, Mac, iOS and Android applications. Today, I thought I would highlight some of those demos for new users trying RAD Studio 10.2.1.

Posted by on in Programming
Implement CreateAnonymousThread with BCC32. C++Builder 10.2 BCC32 can not write lambda. So write an implementation in Invoke() with TCppInterfacedObject<>. struct T_thread_proc : TCppInterfacedObject<TProc>{ TNotifyEvent f_ev_; struct T_sync_proc : TCppInterfacedObject<TThreadProcedure>{ TNotifyEvent f_ev_; T_sync_proc(TNotifyEvent& ev2){ f_ev_ = ev2; } virtual void __fastcall Invoke() { //Inside Synchronize. f_ev_(NULL); //Execute "TNotifyE...

Posted by on in Programming
The Panthera Project – Part 7 – Themes Best Viewed FullScreen (recorded 1080p) http://chapmanworld.com/wp-content/uploads/2017/09/Panthera-Part7.mp4...
Posted by on in Programming
How to control "the system audio volume" of iOS 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 <iOSapi.MediaPlayer.hpp> #include <iOSapi.UIKit.hpp> Form design Arrange “Up” and “Down” two TButton. Use this button to control the volume. Add MPVolumeView to the main form Class Add “_di_MPVolumeView” and “_di_UISlider” to the form class. ...

Check out more tips and tricks in this development video: