c++builder-10.2-tokyo

Abnormal program termination on shutdown with TRESTClient

最后都变了- 提交于 2020-06-23 16:48:15
问题 When a program that has a TRESTClient components is shutdown, it will show an "Abnormal Program Termination" error. Recently, we've upgraded a project from C++Builder 2009 to C++Builder 10.2 Tokyo. Afterwards, we added the new TRESTClient to our project. Now, every time we try to close the application, it shows this error. This means that an abort() call is probably made. We've run the debugger until the end of the tWinMain() function, which shows that it happens after the return. This shows

UnicodeString::Delete Method

99封情书 提交于 2020-01-14 06:21:47
问题 I have a Unicode string that I want to limit to 30 characters. I populate the string from a query, so I don't know the length to begin with. I want to simply snip off all of the characters past 30. I found the UnicodeString::Delete() method, but I don't know how to use it. I tried this to no avail: mystring = <code here to populate the unicode string mystring> Delete(mystring, 30, 100); 回答1: You are actually trying to call System::Delete(), which is not available to C++, only to Delphi.

translate pascal to c++

只谈情不闲聊 提交于 2019-12-08 06:35:31
问题 The following code runs in the ItemClickEx event of a firemonkey ListView. I want to know how to do this in C++. procedure TfrmCategory.lstListCategoryItemClickEx(const Sender: TObject; ItemIndex: Integer; const LocalClickPos: TPointF; const ItemObject: TListItemObject); begin if ItemObject is TListItemAccessory then begin ShowMessage('Acessory clicked'); end; end; Source: link here. I don't know how to do the "if ItemObject is TListItemAccessory" in c++. 回答1: The C++ equivalent to Delphi's