C++

How to use Android Service(TAndroidService) in C++Builder

Author: h.mohri [Make a new project for Android service.] File→New→Other NewItems→Delphi Project→Android Service. After making the above selection, click OK. Select a “Local Service” and click OK. TDM class that inherits TAndroidService will be created. Place the TNotificationCenter. Create an OnStartCommand event and write the code. //// function…
Read more
C++

New in 10.2: MariaDB Support

Author: Pawe Gowacki One of the biggest new RAD Studio 10.2 Tokyo database features is support for MariaDB open-source relational database. MariaDB is one of the most popular open-source SQL databases. It is a fork from MySQL database, after it has been acquired by Oracle…
C++

Use the DLL created by Visual C++2017 with C++Builder(Win64).

Author: h.mohri Made a DLL with Visual C++. And I tried to use it in C++Builder. Common is 64 bits. First I will make a VC++ side DLL. //// extern "C" CONSOLEAPPLICATION1_API int test1(int i1) { ///This function only increments. ++i1; return i1; } extern "C" CONSOLEAPPLICATION1_API void test2(int i1, wchar_t* a) { ///Convert from int to wstring. std::wstring s{}; s =…
Read more
C++

Use the Excel.Application in C++Builder(bcc64)[JAPAN]

Author: Pixelot12345 How to use the Excel.Application in C++Builder. Target device is Win64. Use the ComObj, call in CreateOleObject (“Excel.Application”). Including ComObj is required. In C++Builder it is below. //// #include "System.Win.ComObj.hpp" Import from CSV file to Excel file. //// constexpr wchar_t const def_filename[] =…
Read more
C++

Custom buttons and the integrated Style Designer

Author: Jorge Batista With the integrated Style Designer in RAD Studio Berlin, you can quickly create custom image buttons. For creating entire multi-device styles from scratch, we recommend you use the Bitmap Style Designer, available via the Tools menu. Create a new…
C++

Mixing Delphi and C++

Author: NatSam Would you like to add C++ to your Delphi application? Or add Delphi code to your C++ application? Here’s how. One thing you might not know is how closely integrated the C++ and Delphi languages are in RAD Studio. You can compile a single application in a single project to a single EXE, mixing both languages. (And of course you can do so using DLLsor packages as well.) If…
Read more