From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA32450; Fri, 14 May 2004 16:31:39 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 QAA31411 for ; Fri, 14 May 2004 16:31:38 +0200 (MET DST) Received: from postfix4-1.free.fr (postfix4-1.free.fr [213.228.0.62]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i4EETcEV004383 for ; Fri, 14 May 2004 16:31:38 +0200 Received: from warp (lns-th2-5f-81-56-197-80.adsl.proxad.net [81.56.197.80]) by postfix4-1.free.fr (Postfix) with SMTP id 705C8109803; Fri, 14 May 2004 16:29:36 +0200 (CEST) Message-ID: <006401c439bf$c33a9670$ef01a8c0@warp> From: "Nicolas Cannasse" To: "Felix Winkelmann" , References: <40A493C6.2060903@proxima-mt.de> Subject: Re: [Caml-list] Windows (MSVC) applications without the console window... Date: Fri, 14 May 2004 16:28:44 +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.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; cannasse:01 warplayer:01 caml-list:01 3.07:01 mkwinapp:01 ocaml-win:01 api:01 hchomsky:01 ocaml-win:01 cannasse:01 ocaml:01 ocaml:01 nicolas:01 nicolas:01 speakeasy:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Hello! > > (I'm new to this list, so if this has come up before, > my apologies) > > I'm using OCaml 3.07 on Windows (MSVC build) and I wonder > whether it's possible to create standalone applications > that run without opening a console window. Some googling > directed me to mkwinapp (from the OCaml-Win32 distribution) > but apparently it doesn't work. I'm using Windows XP home. > > Any ideas? You need to get OCaml Win32 API from here : http://www.speakeasy.org/~hchomsky/ocaml-win32.html And then a simple call to free_console() will remove the console. One other way is to hack the exe in order to change its mode from "console application" to "win32 application". Maybe an ocaml linker option would be nice to do that. Regards, Nicolas Cannasse ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners