What unit to use?

Help
2007-10-27
2013-04-23
  • Mario Ray M.
    Mario Ray M.
    2007-10-27

    In "http://wiki.lazarus.freepascal.org/KOL-CE", I was told not to use units from RTL/FCL/LCL, especially SysUtils, Classes, Forms, etc. So, I removed them all from my project. But then, at compilation, the compiler gives error about "identifier not found: TForm" which I know is declared in Forms. Adding KOL, Windows, and Messages doesn't solve the problem. There must be other units needed, but KOL/MCK doesn't automatically add them to my program/unit.

     
    • jura
      jura
      2007-10-27

      You have something wrong in your MCK project. Please attach source code.
      Or do you try to create TForm instance by yourself?