In general replace member access “.” With “->” and casting with pointer notation. Search the web for further assistance. For instance, take a look at the following link for assistance on set notation.
For instance, the following delphi code can be translated to C++
procedure TSearchDemoForm.wwSearchBox1PerformCustomSearch(Sender: TObject;
DataSet: TDataSet; SearchField, SearchValue: string; var Found,
DoDefault: Boolean);
begin
TwwSearchBox(Sender).FilterDialogNeeded;
TwwFilterDialog(TwwSearchBox(Sender).FilterDialog).OnFilterPropertyOptions:= [fdClearWhenCloseDataSet];
End;
Here is the equivalent code in C++.
void __fastcall TSearchDemoForm::wwSearchBox1PerformCustomSearch(
TObject *Sender, TDataSet *DataSet, UnicodeString SearchField,
UnicodeString SearchValue, bool &Found, bool &DoDefault)
{
TwwSearchBox * sb = (TwwSearchBox *)Sender;
sb->FilterDialogNeeded();
TwwFilterDialog * fd = (TwwFilterDialog *)sb->FilterDialog;
fd->OnFilterPropertyOptions = TwwOnFilterPropertyOptions() <<
TwwOnFilterPropertyOption::fdClearWhenCloseDataSet;
}
Comments
0 comments
Please sign in to leave a comment.