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
[48998] 클래스만들기.
pd [kmshts] 2188 읽음    2007-04-19 22:07
01: //---------------------------------------------------------------------------
02:
03: #ifndef CommonFunctionH
04: #define CommonFunctionH
05:
06: //---------------------------------------------------------------------------
07: #endif
08
09
10: class IniFile
11: {
12: private:
13:   int  Host;          // 서버주소
14: public:
15:    int getHost(String execpath);
16: };


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


이하는 Cpp파일입니다.

#pragma hdrstop

#include "CommonFunction.h"

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

#pragma package(smart_init)


int IniFile::getHost(String execpath)
{
  TIniFile  *IniFile = new TIniFile(execpath);
  Host = IniFile->ReadString("LoginSection", "Host", "127.0.0.1");
  delete IniFile;

  return 0;
}




이렇게 하면 아래와같은 메시지가뜹니다.

Build
  [C++ Error] CommonFunction.h(15): E2293 ) expected
  [C++ Error] CommonFunction.cpp(13): E2147 'String' cannot start a parameter declaration
  [C++ Error] CommonFunction.cpp(14): E2316 'IniFile::getHost(int)' is not a member of 'IniFile'
  [C++ Error] CommonFunction.cpp(16): E2223 Too many decimal points
  [C++ Error] CommonFunction.cpp(16): E2223 Too many decimal points


왜이렇게 뜨는겁니까?

+ -

관련 글 리스트
48998 클래스만들기. pd 2188 2007/04/19
48999     Re:클래스만들기. 이정구 1558 2007/04/20
49000         Re:Re:클래스만들기. pd 1457 2007/04/20
49006             Re:Re:Re:클래스만들기. 이정구 3031 2007/04/20
49005             Re:Re:Re:클래스만들기. 아루스 1367 2007/04/20
49007                 Re:Re:Re:Re:클래스만들기. pd 1214 2007/04/20
49013                     Re:Re:Re:Re:Re:클래스만들기. 아루스 1547 2007/04/20
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.