|
C++의 class 선언 부분을 공부하시면 답이 나오실겁니다
클래스에는 생성자라는것이 있죠....
절실한사람 님이 쓰신 글 :
: TDdeServerItem *ServerItem;
: void __fastcall TForm1::FormCreate(TObject *Sender)
: {
: ServerItem=new TDdeServerItem (this) <<<---이부분
: }
: 여기서 this가 Form1인건 알겠는데 왜 this를 해줘야 하나요.
: 그냥 ServerItem=new TDdeServerItem ; 이렇게 하면 안되나요?
|