|
radiogroup, label, Button 등의 컴포넌트를 인자로 넘길수 있는 방법좀 가르쳐 주세요
예로
void __fastcall TForm2::ObjectSend(????? *Obj)
{
int i;
String Str;
i = Obj->ItemIndex;
Str = Obj->Caption;
}
이런식으로 해서 함수 호출할때는
ObjectSend(RadioGroup1);
ObjectSend(Label1);
ObjectSend(Button1);
모두 가능하도록 하는 ?????는 없을까요??
|