|
프로잭트에 포함이 안돼있어서 프로잭트에 MethodSource.h
파일을 넣어줬거든여 그래도 똑같은 에러가.....
제가 더 자세하게 소스 보여드릴께여
이것이 MethodSource.h 입니다
#include <vcl.h>
#include <stdio.h>
#include "MainSource.h"
#include "WordDetailViewSource.h"
#include "WordInputSource.h"
#include "TotalFindSource.h"
#include "WordModifySource.h"
typedef struct Dept
{
AnsiString DeptName;
int DeptCode;
}TDept;
typedef TDept* SS_PDept;
void Main_CategoryTreeCreat()
{
SS_PDept NDept;
TTreeNodes* pltems;
NDept = new TDept;
pltems = MainFullTreeView->Items;
NDept->DeptName = "공병훈";
NDept->DeptCode = 100;
pltems->AddObject(NULL,NDept->DeptName,NDept);
}
이걸 MainSource.cpp에서 다음 함수에서 호출합니다
#include "MethodSource.h" 이렇게 해주고 물론 프로잭트에서도 추가된상태입니다
void __fastcall TMainForm::FormShow(TObject *Sender)
{
Main_CategoryTreeCreat();
}
//---------------------------------------------------------------------------
그런데
[C++ Error] MethodSource.h(26): E2451 Undefined symbol 'MainFullTreeView' 이렇게 에러가 나거든여
정의 되어저 있지 않다고 그래서 제코딩상에 문제가 잇는지 하고 .........
|