Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamlopt and *using* DLLs
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Cannasse <warplayer@f...>
Subject: Re: [Caml-list] ocamlopt and *using* DLLs
> ...
> I have one more issue which I will bring up in this group, since it
> presumably effects anyone using GTK apps on Windows: what can I do
> about the [gratuitous to me] console window opened with my OCaml/GTK app?
>
> Aside from the philosophical debate about having a "stdout" or not, a
> very large number of Windows app certainly manage without one. :)
>
> Did someone on this or the LablGTK list have a piece of code yielding
> a tiny/invisible console window for GTK apps on Windows?  I thought I
> had seen something like that previously, but my searches are coming up
> empty.

> There is a small hack in ocaml-win32 for console window
> elimination, mkwinapp

The other possibility is to call  Win32.free_console()
Be careful however, if you try to write to stdout that will raise an
exception.

Nicolas