函数的回调问题!
本来的delphi 回调思想在C++ 用不了!
D代码
function S(t, s:string):integer;begin Ft := TFt.Create(Application); Ft.Label1.Caption := t; Ft.Label2.Caption := S; if Ft.showModal = mrok then result := mrok;end;
void s(String s,String t){ Ft = new TFt(Application); Ft->Label1->Caption = s; Ft->Label2->Caption = t; if (Ftip->ShowModal() == mrOk) return mrOk; }}
int s(String s,String t){ Ft = new TFt(Application); Ft->Label1->Caption = s; Ft->Label2->Caption = t; if (Ftip->ShowModal() == mrOk) return mrOk; }}
void s(String s,String t,int result){ Ft = new TFt(Application); Ft->Label1->Caption = s; Ft->Label2->Caption = t; if (Ftip->ShowModal() == mrOk) result = mrOk; }}