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 SAA08661; Fri, 14 May 2004 18:55:20 +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 SAA08033 for ; Fri, 14 May 2004 18:55:19 +0200 (MET DST) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i4EGtHEV000404 for ; Fri, 14 May 2004 18:55:18 +0200 Received: (qmail 29606 invoked from network); 14 May 2004 16:55:14 -0000 Received: from dsl081-246-034.sfo1.dsl.speakeasy.net (HELO harry) ([64.81.246.34]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 14 May 2004 16:55:14 -0000 Message-ID: <05f801c439d4$ba2d56c0$0200a8c0@harry> From: "Harry Chomsky" To: "Nicolas Cannasse" , "Felix Winkelmann" , References: <40A493C6.2060903@proxima-mt.de> <006401c439bf$c33a9670$ef01a8c0@warp> Subject: Re: [Caml-list] Windows (MSVC) applications without the console window... Date: Fri, 14 May 2004 09:58:49 -0700 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-Miltered: at nez-perce with ID 40A4F9F5.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 3.07:01 mkwinapp:01 ocaml-win:01 ocaml's:01 runtime:01 ocamlrun:01 ocaml-win:01 lkwinapp:01 mkwinapp:01 ocaml:01 ocaml:01 msvc:01 msvc:01 subsystem:97 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > 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. Can you be more specific about what doesn't work? I haven't tried it with the most recent versions of OCaml and Windows, so there may be bugs that I don't know about. Or you may be running into the limitations caused by OCaml's use of a separate application for its runtime (ocamlrun.exe). Make sure you read and understand section 3 ("Subsystems") of the file build.txt included with the OCaml-Win32 distribution. > And then a simple call to free_console() will remove the console. That might work, but I think it might look less clean than having a true windows subsystem app. > 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. That's exactly what the "lkwinapp" and "mkwinapp" features of OCaml-Win32 do. But again, if you read the "Subsystems" documentation mentioned above, you will see why it might not work as well as you'd hope. ------------------- 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