c++builder-xe8

Using Static & Dynamic Libraries In Embarcadero C++ Builder

孤街浪徒 提交于 2020-01-05 17:58:24
问题 I have an iOS static library (.a & .h file) and would like to know how to implement it into a C++ Builder project. The documentation cover's how to import a Java library in some detail but does not touch on a third party iOS library at all. Nor are there any blog posts or video's from Embarcadero about doing so. The closest post I have found is: Checking for an internet connection on mobile devices with Delphi XE5 However, it is not clear how to link in the .a file and then how to access the

TEdit Input Validation on C++ Builder XE8

白昼怎懂夜的黑 提交于 2019-12-24 03:04:31
问题 I am very new to C++ Builder XE8. I want the minimum and maximum length of numbers that must be typed is as much as six numbers, also I need to make sure that only number is entered (0 is exception), and not an alphabetic character, backspace, punctuation, etc. I would also like to produce an error box if anything other than a number is entered. I've tried a few combinations of codes, three of which can be seen below, but none of those codes works. Any help would sure be appreciated! (1).

Firemonkey: Setting TLabel Text causes String Index out of Range Exception

强颜欢笑 提交于 2019-12-13 20:30:55
问题 I have a method which builds a help message and then sets a TLabel 's text property to that help message. However, whenever I attempt to set the text of the label, I get the following exception: 'String index out of range. (-1) Must be >=0 and <=42' The method is as follows: void __fastcall TPasswordChangeForm::BuildHelpMessage() { String HelpMsg = ""; if( NewPassEdit->Text.Length() < MinPasswordLength ) { HelpMsg += "Password length too short."; } else { HelpMsg += "Password length OK."; }

With Do Begin Statement in C++ Builder

天涯浪子 提交于 2019-12-13 10:52:02
问题 I wanna know how to write the following codes in C++ Builder by using With Do Begin statement similar to Delphi. I tried with ComboBox->Text .... do ... try and it's not working. I tried with just do ComboBox->Text .... try , also not working. if (ComboBox->Text.operator==(String("C++ Builder XE7"))) { try { // do something if ((Form1->Memo1->Lines->Text).Pos("<") !=0) { // do something } } catch(Exception &ex) { ShowMessage(ex.ToString()); } if (ComboBox->Text.operator==(String("C++ Builder