Category : c++builder

Currently I’m working on simple librabry project on ebmbarcadero. I’m using C++ builder 10.3 Community edition as IDE, and Firebird and Flame Robin to create databases. So far, I need only use simple queries, that were connected to single database. Therefore, I used TFDConnection, TFDPhysFbDriverLink to connect to .fdb file. Then, TFDQuery to create SQL ..

Read more

I am receiving an error indicating that their is no matching function for a call to MessageDlg() in C++ Builder. My header file does include <Vcl.Dialogs.hpp> which is where the function is declared. The function is being called from within a TForm class public function. Below is the offending code: void MBInvalidPosition() { MessageDlg("Invalid Position ..

Read more

I am trying to build the aws-iot-device-sdk-cpp-v2 with CMake and embarcadero’s C++ Builder (bcc64.exe Version 10.2) on a Windows 10 machine. First I copied the Windows-Embarcadero.cmake from the RAD folder to the CMake folder, like described in this documentation. Then I followed the steps from the aws-iot-device-sdk-cpp-v2 installing instructions. But changed the first CMake line ..

Read more

I’m trying to achieve the following: to call methods or to modify properties of a TTimer timer which was created in the main thread, from another threads. Code looks like the following: //————————————————————————— __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { Timer1->Interval = 5000; ht=(HANDLE)_beginthread(MyThread,4096,NULL); // My Thread } //————————————————————————— void __fastcall TForm1::Timer1Timer(TObject *Sender) { static int ..

Read more

Has anyone got Google Tests (unit testing framework) working with Embarcadero C++ clang compiler? if so, using clang32 or clang64 bit? [or, ideally, both?] I can’t find any web documentation that tells me if this is currently possible (Embarcadero 10.4.1) or not. (If there is a helpful URL then I would be grateful if anyone ..

Read more

I am new to Embarcadero C++ Builder and am using 10.3 community version. Does anyone know how to "go to definition" for my Windows console program? I’ve tried the Pre-compiled Header Wizard but it stucked at showing this error message: Invalid token "EOF" on line 28, column 0. Valid tokens: "File " Please correct errors ..

Read more

I try to find word "пак" in text like this: 180121-5пак. Thera are cyrillic signes. I used to Pos() function but there is no effect. The function return value 0 Zal //<– UnicodeString; if ( Zal.Pos( "пак" ) != 0 ) { smth } i tried to use UnicodeString("пак"), AnsiString("пак") and UTF8String("пак") but without results ..

Read more