[Lazarus] Hello World program generates a File Not Open runtime error

ik idokan at gmail.com
Sun Jan 29 16:21:09 CET 2012


On Sun, Jan 29, 2012 at 17:13, Antônio <antoniog12345 at gmail.com> wrote:

> Maybe something could be done to make things easier for Windows users?
>

Sure, they can move to Linux :)

But you can fill in a bug report and request to add the the templates and
IFDEF for windows that add console mode, or something like that


>
> Antônio
>
> 2012/1/29 Sven Barth <pascaldragon at googlemail.com>:
> > On 29.01.2012 15:43, Antônio wrote:
> >>
> >> Only on Windows?
> >>
> >> Antônio
> >>
> >> 2012/1/29 Sven Barth<pascaldragon at googlemail.com>:
> >>>
> >>> On 29.01.2012 15:31, Antônio wrote:
> >>>>
> >>>>
> >>>> program project1;
> >>>>
> >>>> {$mode objfpc}{$H+}
> >>>>
> >>>> uses
> >>>>   {$IFDEF UNIX}{$IFDEF UseCThreads}
> >>>>   cthreads,
> >>>>   {$ENDIF}{$ENDIF}
> >>>>   Classes
> >>>>   { you can add units after this };
> >>>>
> >>>> begin
> >>>>   WriteLn('Hello World');
> >>>>   ReadLn();
> >>>> end.
> >>>>
> >>>> Any problem? Am I missing something?
> >>>
> >>>
> >>>
> >>> Are you on Windows? Then you must add "{$apptype console}".
> >
> >
> > Windows and perhaps OS/2 are the only systems that differentiate between
> GUI
> > and console applications.
> >
> >
> > Regards,
> > Sven
> >
> >
> > --
> > _______________________________________________
> > Lazarus mailing list
> > Lazarus at lists.lazarus.freepascal.org
> > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120129/ffcdf8cc/attachment-0003.html>


More information about the Lazarus mailing list