From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 748C7BCAC for ; Sat, 28 May 2005 09:10:48 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j4S7AlP2004674 for ; Sat, 28 May 2005 09:10:48 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA13867 for ; Sat, 28 May 2005 09:10:47 +0200 (MET DST) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4S7Al6r014331 for ; Sat, 28 May 2005 09:10:47 +0200 Received: from warp (chateaudeau-4-82-225-176-25.fbx.proxad.net [82.225.176.25]) by postfix4-2.free.fr (Postfix) with SMTP id 25FC431D966; Sat, 28 May 2005 09:10:47 +0200 (CEST) Message-ID: <02cf01c56355$14f8d930$19b0e152@warp> From: "Nicolas Cannasse" To: "Anatoly Zaretsky" , "Caml-list" References: <4292A58D.207@rftp.com> <20050524.132951.104054009.garrigue@mailhost.math.nagoya-u.ac.jp> <4296824D.8030400@rftp.com> Subject: Re: [Caml-list] ocamlopt and *using* DLLs Date: Sat, 28 May 2005 08:42:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Miltered: at concorde with ID 42981978.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42981977.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; cannasse:01 warplayer:01 caml-list:01 ocamlopt:01 dlls:01 gtk:01 ocaml:01 gtk:01 stdout:01 lablgtk:01 ocaml-win:01 mkwinapp:01 stdout:01 ...:98 exception:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: > ... > 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