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
[66558] Re:Re:Re:헤더안에 구조체를 넣고 싶은데
Neit [] 824 읽음    2012-03-09 19:34
맞습니다 ^^

축구 님이 쓰신 글 :
: 헐 그렇군요.
: 님 코드를 예를들어 msgLevel을 가져다 쓸려면
: sheet_info_t sheetinfot;
: sheetinfot.msgLevel 
: 이런식으로 가져다 쓰면 되는거 맞져?
:
:
: Neit 님이 쓰신 글 :
: : 이상하네요. 왜 안될까요 ?
: :
: : 제코드 일부 입니다.
: :
: : 아래처럼 하고 있는데 잘 되는데요 ?
: :
: :
: : #include "options.h"
: : #include "findtext.h"
: : #include "SynEdit.hpp"
: : #include "go2line.h"
: : #include 
: : #include "SynEdit.hpp"
: : #include 
: : #include "NiceGrid.hpp"
: : 
: : struct sheet_info_t
: : {
: :     TStringGrid *sg;
: :     int msgLevel;
: : };
: : 
: : enum
: : {
: :     INI_FILTER,
: :     INI_FILTER_OPTION,
: :     INI_RECENT_FIND_TEXT,
: :     INI_FIND_TEXT_OPTION,
: :     INI_SECTION_MAX
: : };
: : 
: : class TForm1 : public TForm
: : {
: : __published:	// IDE-managed Components
: : ...
: : ...
: : }

: :
: :
: : 축구 님이 쓰신 글 :
: : : 헤더를 보면 저런식으로 되어있잖아요
: : : struct ABC를 만들어서 추가하고 싶은데 어디에 넣어야 하나요?
: : : 여기 저기 넣어봐도 안되서 질문드려요.
: : :
: : : 아 그리고 enum위치도 알려주세요.
: : :
: : :
: : : #ifndef MainH
: : : #define MainH
: : : //---------------------------------------------------------------------------
: : : #include 
: : : #include 
: : : #include 
: : : #include 
: : : #include 
: : : #include 
: : : #include 
: : : #include 
: : : #include 
: : : #include 
: : : #include 
: : : //---------------------------------------------------------------------------
: : : class TForm1 : public TForm
: : : {
: : : __published:	// IDE-managed Components
: : : 	TButton *Button1;
: : : 	TLabel *Label1;
: : : 	TButton *Button2;
: : : 	TButton *Button3;
: : : 	TButton *Button4;
: : : 	TButton *Button5;
: : : 	TMemo *Memo1;
: : : 	void __fastcall Button1Click(TObject *Sender);
: : : 	void __fastcall Button2Click(TObject *Sender);
: : : 	void __fastcall Button3Click(TObject *Sender);
: : : 	void __fastcall Button4Click(TObject *Sender);
: : : 	void __fastcall Button5Click(TObject *Sender);
: : : 	void __fastcall FormCreate(TObject *Sender);
: : : private:	// User declarations
: : : public:		// User declarations
: : : 	__fastcall TForm1(TComponent* Owner);
: : : };
: : : //---------------------------------------------------------------------------
: : : extern PACKAGE TForm1 *Form1;
: : : //---------------------------------------------------------------------------
: : : #endif
: : : 

+ -

관련 글 리스트
66554 헤더안에 구조체를 넣고 싶은데 축구 728 2012/03/09
66555     Re:헤더안에 구조체를 넣고 싶은데 Neit 829 2012/03/09
66556         Re:Re:헤더안에 구조체를 넣고 싶은데 축구 763 2012/03/09
66558             Re:Re:Re:헤더안에 구조체를 넣고 싶은데 Neit 824 2012/03/09
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.