|
헤더가..CaseInput이고 unit가 CaseInout인걸 보니..혹시 서로 다른 클래스에서 생성된 변수를 가져다 쓰신건 아닌가요? 같은 헤더파일이라면..파일명이 다를리가 없어서..혹시나 해서염..
천서아빠 님이 쓰신 글 :
: // CaseInput.h -------------------------------------------------
: ...
: private: // User declarations
: int Case_flag; // 0: 앞면, 1: 뒷면
: int ROI_flag1, ROI_flag2, ROI_flag3; // 선택영역 내부인지
: bool IsDrawing;
:
: double STX, STY; // 영역 확대율
: int StartX[3];
: int StartY[3];
: int EndX[3];
: int EndY[3];
: ...
:
: // CaseInout.cpp -----------------------------------------------
:
: ...
: void __fastcall TFormCaseInput::Shape1MouseUp(TObject *Sender,
: TMouseButton Button, TShiftState Shift, int X, int Y)
: {
: ...
: StartX[0] = Shape1->Left; // 여기서 에러: Undefined Symbol 'StartX'
: StartY[0] = Shape1->Top;
: EndX[0] = Shape1->Width+StartX[0];
: EndY[0] = Shape1->Height+StartY[0];
: }
|