C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[10535] 에러가 나는데 도와주세요..
모라 [] 911 읽음    2001-09-03 06:10
안녕하세요 볼랜드 c++빌더 4 빌더정복의 '컴포넌트 만들기'를 하고 있는데요.(예제에 있는데로..)


__fastcall commatext 부분에 에러가 나네요 선언에 대한 에러문제던데

당최 감을 못잡겠군요, 도움을 바랍니다 :)

아 참고로 이 콤포넌트는 '우측정렬,오로지 숫자만 인식하고 콤마'를 넣어주는 콤포넌트랍니다.

commatext 헤더부분

//---------------------------------------------------------------------------

#ifndef commatextH
#define commatextH
//---------------------------------------------------------------------------
#include <SysUtils.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <Forms.hpp>
#include <StdCtrls.hpp>
//---------------------------------------------------------------------------
class PACKAGE commatext : public TCustomMemo
{
private:
   double FieldValue;
   void __fastcall SetFieldValue(double A);
   void __fastcall FormatNum();

protected:
public:
        __fastcall commatext(TComponent* Owner);

__published:
        __property Text ;
__property double Value ={read =FieldValue, write = SetFieldValue, default=1);
           __property Align ;
        __property BorderStyle ;
    __property Color ;
    __property DragCursor ;
    __property DragMode ;
    __property Enabled ;
    __property Font ;
        __property HideSelection ;
        __property MaxLength ;
    __property ParentColor ;
    __property ParentFont ;
    __property ParentShowHint ;
    __property PopupMenu ;
        __property ReadOnly ;
        __property ScrollBars ;
    __property ShowHint ;
    __property TabOrder ;
    __property TabStop ;
    __property Visible ;
        __property OnChange ;
    __property OnClick ;
        __property OnDblClick ;
        __property OnDragDrop ;
        __property OnDragOver ;
        __property OnEndDrag ;
        __property OnEnter ;
        __property OnExit ;
        __property OnKeyDown ;
        __property OnKeyPress ;
        __property OnKeyUp ;
        __property OnMouseDown ;
        __property OnMouseUp ;
        __property OnStartDrag ;


};
//---------------------------------------------------------------------------
#endif




commatext cpp 부분..
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "commatext.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
// ValidCtrCheck is used to assure that the components created do not have
// any pure virtual functions.
//

static inline void ValidCtrCheck(commatext *)
{
        new commatext(NULL);
}
//---------------------------------------------------------------------------
__fastcall commatext::commatext(TComponent* Owner)
        : TCustomMemo(Owner)
{

}
//---------------------------------------------------------------------------
namespace Commatext
{
        void __fastcall PACKAGE Register()
        {
                 TComponentClass classes[1] = {__classid(commatext)};
                 RegisterComponents("Samples", classes, 0);
        }
}
//---------------------------------------------------------------------------
void __fastcall commatext::SetFieldValue(double A)
{
     FieldValue = A;
     FormatNum();
     return;
}
//---------------------------------------------------------------------------
void __fastcall commatext:FormatNum()
{
     Text = FormatFloat("#,##0",FieldValue);
     return;
}
//---------------------------------------------------------------------------

+ -

관련 글 리스트
10535 에러가 나는데 도와주세요.. 모라 911 2001/09/03
10540     Re:에러가 나는데 도와주세요.. 최보현.U&I 981 2001/09/03
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.