질문있어요 4월 21일에 포스트됨 공유하기 4월 21일에 포스트됨 개발 환경 및 버전: Delphi 10.4.2 버전 문의 사항: Coding 중 오류가 발생하여 문의 드립니다. 소스 코드: constructor Create(AOwner: TComponent); override; E2005 “TComponent is not a type identifier” 에러 발생. PC 설치 위치 및 확인 사항: C:\Program Files (x86)\Embarcadero\Studio\21.0\lib\win32\release 상기 폴더에 TComponent.dcu 파일은 없습니다. 상기 사항이 Delphi 설치 파일 중에 TComponent.dcu 파일이 존재하지 않아서 발생하는 것으로 추정하고 있습니다. 요청사항: TComponent.dcu 파일을 어떻게 찿아야 하는지, TComponent.dcu 파일을 win32\release 폴더에 적용만 하면 되는지 확인 부탁 드립니다. 이슈가 발생하는 소스 코드: (아마 코드 상에는 문제가 없는 것으로 보입니다만) 아래 Source Code에서 오류가 발생합니다. unit MainForm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, View, MyComponent, Vcl.StdCtrls; type TForm1 = class(TForm) Edit1: TEdit; Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } constructor Create(AOwner: TComponent); override; destructor Destroy; override; end; var Form1: TForm1; implementation {$R *.dfm} constructor TForm1.Create(AOwner: TComponent); begin inherited Create(AOwner);; end; destructor TForm1.Destroy; begin inherited Destroy; end; procedure TForm1.Button1Click(Sender: TObject); Begin end; end. 인용하기 이 댓글 링크 다른 사이트에 공유하기 더 많은 공유 선택 사항
1 cwlee 4월 21일에 포스트됨 공유하기 4월 21일에 포스트됨 다시 Project를 생성하여 실행하니 정상적으로 처리 되었습니다. 감사 합니다. 1 인용하기 이 댓글 링크 다른 사이트에 공유하기 더 많은 공유 선택 사항
1 c2design 4월 21일에 포스트됨 공유하기 4월 21일에 포스트됨 델파이 설치 경로에 TComponent.dcu 파일은 원래 없는 게 맞습니다. TComponent 클래스가 들어있는 유닛은 System.Classes 입니다 (이미 소스에서 uses 절에 추가하신 것으로 보입니다) 올려주신 소스는 문법상에 에러는 없으므로 델파이 설치가 잘 못되었거나 설치 파일이 손상 되었거나 하는 경우로 예측 됩니다. 일단 지금 소스에 적은 TComponent에서 System.Classes 유닛 파일로 이동할 수 있는 지 확인해보세요. 소스 이동 (참조 유닛으로 바로 이동하는) 방법: 소스에 적은 TComponent 위를 Ctrl + 마우스 클릭 또는, 소스에 적은 TComponent 위에 커서를 놓고 Alt+위쪽 방향키 인용하기 이 댓글 링크 다른 사이트에 공유하기 더 많은 공유 선택 사항
0 c2design 4월 21일에 포스트됨 공유하기 4월 21일에 포스트됨 1시간 전, cwlee said: 다시 Project를 생성하여 실행하니 정상적으로 처리 되었습니다. 감사 합니다. 다행입니다...결과 알려 주셔서 감사합니다. 인용하기 이 댓글 링크 다른 사이트에 공유하기 더 많은 공유 선택 사항
질문
질문있어요
개발 환경 및 버전: Delphi 10.4.2 버전
문의 사항: Coding 중 오류가 발생하여 문의 드립니다.
소스 코드:
constructor Create(AOwner: TComponent); override;
E2005 “TComponent is not a type identifier” 에러 발생.
PC 설치 위치 및 확인 사항:
C:\Program Files (x86)\Embarcadero\Studio\21.0\lib\win32\release
상기 폴더에 TComponent.dcu 파일은 없습니다.
상기 사항이 Delphi 설치 파일 중에 TComponent.dcu 파일이 존재하지 않아서 발생하는 것으로 추정하고 있습니다.
요청사항:
TComponent.dcu 파일을 어떻게 찿아야 하는지, TComponent.dcu 파일을 win32\release 폴더에 적용만 하면 되는지 확인 부탁 드립니다.
이슈가 발생하는 소스 코드: (아마 코드 상에는 문제가 없는 것으로 보입니다만) 아래 Source Code에서 오류가 발생합니다.
unit MainForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, View, MyComponent, Vcl.StdCtrls;
type
TForm1 = class(TForm)
Edit1: TEdit;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
constructor TForm1.Create(AOwner: TComponent);
begin inherited Create(AOwner);; end;
destructor TForm1.Destroy;
begin inherited Destroy; end;
procedure TForm1.Button1Click(Sender: TObject);
Begin end;
end.
이 댓글 링크
다른 사이트에 공유하기
3 answers to this question
Recommended Posts
이 토의에 참여하세요
지금 바로 의견을 남길 수 있습니다. 그리고 나서 가입해도 됩니다. 이미 회원이라면, 지금 로그인하고 본인 계정으로 의견을 남기세요.