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 F0E02BC75 for ; Tue, 22 Feb 2005 18:47:09 +0100 (CET) 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 j1MHl9vS023010 for ; Tue, 22 Feb 2005 18:47:09 +0100 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 SAA26614 for ; Tue, 22 Feb 2005 18:47:09 +0100 (MET) Received: from hedwig1.umh.ac.be (hedwig2.umh.ac.be [193.190.193.73]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j1MHl4mW023517 for ; Tue, 22 Feb 2005 18:47:09 +0100 Received: from poincare (mail@poincare.swapping.umh.ac.be [10.102.100.42]) by hedwig1.umh.ac.be (8.13.1/8.13.1) with ESMTP id j1MHoUd81278022; Tue, 22 Feb 2005 18:50:44 +0100 Received: from poincare ([127.0.0.1] helo=localhost ident=trch) by poincare with esmtp (Exim 3.36 #1 (Debian)) id 1D3e7T-0002tR-00; Tue, 22 Feb 2005 18:46:47 +0100 Date: Tue, 22 Feb 2005 18:46:46 +0100 (CET) Message-Id: <20050222.184646.71942873.Christophe.Troestler@umh.ac.be> To: "O'Caml Mailing List" Subject: Re: [Caml-list] Re: Cross-platform "Hello, World" graphical application in OCaml From: Christophe TROESTLER In-Reply-To: <20050222140333.GA4603@furbychan.cocan.org> References: <20050222120308.GA2975@furbychan.cocan.org> <20050222140333.GA4603@furbychan.cocan.org> Organization: Universite de Mons-Hainaut (http://math.umh.ac.be/an/) X-Spook: Capricorn cryptographic NSA virus Telex ASDIC New World Order bullion KGB data haven X-Blessing: Om Ah Hum Vajra Guru Pema Siddhi Hum X-Operating-System: GNU/Linux (http://www.linux.org/) X-Mailer-URL: http://www.mew.org/ X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.1 (www dot roaringpenguin dot com slash mimedefang) X-Miltered: at concorde with ID 421B701D.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 421B7018.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 christophe:01 troestler:01 christophe:01 troestler:01 umh:01 wrote:01 wrote:01 gimp:01 ocaml:01 ghostscript:01 2003,:98 lpd:98 unix: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: On Tue, 22 Feb 2005, Richard Jones wrote: > > Printing is another area where things are complicated. Under Unix > it's relatively straightforward: generate a PS or PPM file and pipe it > into 'lpr'. On Windows things are much more complex. For the app I > wrote in 2003, I managed a primitive form of graphic-only printing by > hacking out a standalone printing program from the guts of the GIMP > Windows printer driver (written in C, not OCaml). I can let anyone > have this if they're interested. There is gsprint.exe (http://www.cs.wisc.edu/~ghost/gsview/gsprint.htm) which makes it easy to print PS files on a window box. It is a bit heavy -- you need Ghostscript -- but it works well. I have been using it for several months to print to a win$ only color laser printer (with the help of a LPD daemon written in OCaml! :). Hope it helps, ChriS