大菜鸟,到处跑,.....是重载窗体生成函数的简单问题,先谢了
自己做了一个程序,是重载窗体生成函数的,__fastcall TForm2::TForm2(TComponent* Owner,AnsiString aa):TForm(Owner)
{
bb=aa;
}//大概就是在生成窗体的时候,再传一个字符串上去
调用他的函数如下,
AnsiString="dfd";
TForm2* sos=new TForm2(Application,aa);
sos->ShowModal();
编绎的时候 没有错误,但,但真是运行的时候 就会出现Project Project1.exe raised exception class EDBEngineError with message 'Name not unique in this context''Process stopped,Use Step or Run to couninue.的对话框,
再之后,就错误的鼠标就停在/* TCustomForm.Create */ inline __fastcall virtual TForm(Classes::TComponent* AOwner) : TCustomForm(
AOwner) { }的句子上