[lazarus] strange win32 executable

rstar at mnet-online.de rstar at mnet-online.de
Sat Dec 20 10:04:56 EST 2003



Hi Leva,

put

{$IFDEF FPC}
   {$APPTYPE GUI}
{$ENDIF}

at your projcet file <name>.dpr.

It would help. :-)



LeVA wrote:
> Mattias Gaertner írta:
> 
>> On Fri, 19 Dec 2003 18:32:29 +0100  LeVA <leva at az.isten.hu> wrote:
>>
>>
>>> Hi!
>>>
>>> I just wanted to ask, if it is normal, that when I run my project 
>>> (compiled under linux to win32) on a windows machine, the application 
>>> is started from an ms-dos command line, and the ms dos window stay 
>>> opened during the program running. Is it possible to make Delphi like 
>>> programs with lazarus, which can be build to a "truly" windows 
>>> executable, and then no ms-dos prompt appears, when running it?
>>>
>>> I'm using fpc1.0.10, and lazarus cvs.
>>
>>
>>
>> Run -> Compiler-Options -> Linking -> Target Specific -> Win
>>
> 
> When I build my project with this option, and run it on a win98se 
> machine, it won't start. I don't know exactly the problem's name, 
> because it is a hungarian win98. But you know, that little window with a 
> 'Close', and a 'Details' button. The windows's general error popup 
> window. Hope that you understand this :) (I couldn't, though..) Anyway, 
> I need to use that option, because I don't want my program to display an 
> ms-dos window, when I start it. Is there any other way to do this, or 
> are there any updates for fpc/lazarus which will build binaries (with 
> that Target specific option) which won't be freeze on windows?
> 
> Thanks!
> 
> Daniel
> 
> 







More information about the Lazarus mailing list