Category : c++builder

This is a code that checks all childes when user check one parent. But how to check all parent checking one childe? By the way. I tried to use Node->getPrevSibling();but there is no effect. void __fastcall TForm1::UpdateChildStates( TTreeNode *Node ) { int state = TreeView_GetItemState(TreeView1->Handle, Node->ItemId, TVIS_STATEIMAGEMASK); int StateIndex = ((state & TVIS_STATEIMAGEMASK)>>12); Node = ..

Read more

Below program is working fine but same four line repeating in every function. Make that into a function, then call it directly with values. No need for vars. void __fastcall TfrmMain::Num1() { String name = GetCurrentDir() + "first.exe"; if(FileExists(name)) { ShellExecute(NULL, L"runas", name.c_str(), NULL, NULL, SW_SHOWNORMAL); } else { Message(); } } void __fastcall Main::Num2() ..

Read more

Have some erros while compliling c++ builder 6 threads project. Doesn’t know how to fix them. Unit1.cpp file //————————————————————————— #include <vcl.h> #pragma hdrstop #include "Unit1.h" using namespace std; int i1 = 0, i2 = 0; T1 *Thread1, *Thread2; bool Term1, Term2; //————————————————————————— #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; //————————————————————————— __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) ..

Read more

I have a C++ Android application in Embarcadero C++Builder/FMX and cannot figure out how to get the push notifications working. This is my problem: Embarcadero mentions how to connect to google firebase in several ways, none of which appear to work for various reasons: 1: http://docwiki.embarcadero.com/RADStudio/Sydney/en/Mobile_Tutorial:_Using_Remote_Notifications_(iOS_and_Android) This method uses either Kinvey, Parse, or RAD Server. ..

Read more

I have an Android application written in Embarcadero C++Builder, and cannot figure out how to get the push notifications working. This is my problem: Embarcadero mentions how to connect to Google Firebase in several ways, none of which appear to work for various reasons: http://docwiki.embarcadero.com/RADStudio/Sydney/en/Mobile_Tutorial:_Using_Remote_Notifications_(iOS_and_Android) This method uses either Kinvey, Parse, or RAD Server. I ..

Read more

(Sry for my weak English Skills) We’re now using Android QR Code Reader, and some Bluetooth QR Reader. Each reader made keyboard event so I made this to catch the Code which Reader readed. //————————————————————————— void __fastcall TForm1::FormKeyDown(TObject *Sender, WORD &Key, System::WideChar &KeyChar, TShiftState Shift) { Edit1->Text+=KeyChar; } //————————————————————————— But I have some problem.. I ..

Read more