|
첨에 시작하면 기본적으로 이런 소스가 생기잖아요?
1. unit1.h
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
private: // User declarations
public: // User declarations
__fastcall TForm1(TComponent* Owner);
};
2. unit1.cpp
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
이 두 소스에 대한 좀 구체적이고 상세한 설명 좀 해주실수 없나요? ( 한줄 한줄)
가령 저기 *.dfm 은 뭐고 뭐 기타 등등
빌더 콤포넌트 사용해서 VB 처럼 뚝닥뚝닥 가져다 붙히는거 까지는
좋은데 기본 소스 생성된 부분 부터 막히는 군요 고수님의 조언 바랍니다.
언제쯤 나두 답변 함 달아 보나~
|