|
HPP 파일 추가와 Owner 처리가 필요합니다.. ^^;
//---------------------------------------------------------------------------
#include <vcl.h>
#include <scktcomp.hpp> // 추가
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{
TClientSocket *TelNetClient;
TelNetClient = new TClientSocket(Form1); // Owner 처리
}
//---------------------------------------------------------------------------
전 님이 쓰신 글 :
: TClientSocket *TelNetClient;
:
: TelNetClient = new TClientSocket ???
:
: 어떻해 해야 할지를...
: 어떻해 해야죠....
: 아시는 분....
|