Q&A

  • CreateOLEObject 에러나는데....

procedure TForm1.FileOpen1Accept(Sender: TObject);

begin
        try
                XL := CreateOLEObject('Excel.Application');  // 엑셀을 실행
        except
                ShowMessage('Excel이 설치되어 있지 않습니다!!!');
                Exit;
        end;
        message_t.Enabled := True;
        timer_f := 3;
end;


-------------------------------------------------------------------------------------------------------

[Error] Unit1.pas(60): Undeclared identifier: 'CreateOLEObject'
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'


이런 에러가 자꾸 나는데.....  머가 잘못 된걸까요?
2  COMMENTS