P
P
pakrauce2016-02-27 20:15:35
Pascal
pakrauce, 2016-02-27 20:15:35

Error 149: Virtual Expected - what is the error?

Hello. I don't understand Pascal. I copied the code from the tutorial, it gives error 149 at startup. Google does not help, Google has a list of errors without explanation. What could be the problem?

Program P1;
uses App, Objects, Views, Drivers, Menus;
type
  TMyAppl = object (TApplication)
    constructor Init;
    procedure InitStatusLine;
    procedure InitMenuBar;
    procedure HandleEvent(var Event:TEvent); virtual; 
  end;
var MyAppl: TMyAppl; {экземпляр}
begin
  MyAppl.Init; {конструктор - делает начальные установки}
  MyAppl.Run; {выполнение - обработка событий}
  MyAppl.Done; {деструктор - уничтожение объектов}
end.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
werw, 2016-02-27
@werw

In Russian it is written - you need to write the word Virtual.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question