From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 5A9FABC6B for ; Mon, 20 Aug 2007 23:13:40 +0200 (CEST) Received: from anchor-post-36.mail.demon.net (anchor-post-36.mail.demon.net [194.217.242.86]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7KLDd09014000 for ; Mon, 20 Aug 2007 23:13:40 +0200 Received: from orion.metastack.com ([80.177.38.218]) by anchor-post-36.mail.demon.net with esmtp (Exim 4.42) id 1INEZ9-000Htn-Km for caml-list@yquem.inria.fr; Mon, 20 Aug 2007 21:13:39 +0000 Received: from treble (cpc2-cmbg6-0-0-cust535.cmbg.cable.ntl.com [81.107.34.24]) (authenticated bits=0) by orion.metastack.com (8.13.4/8.13.3) with ESMTP id l7KKwVnZ017172 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Mon, 20 Aug 2007 21:58:32 +0100 From: "David Allsopp" To: "OCaml List" Subject: OCam'OLE using MinGW Toolchain Date: Mon, 20 Aug 2007 22:13:38 +0100 Organization: MetaStack Solutions Ltd. Message-ID: <002801c7e36e$fad6fe50$6a7ba8c0@treble> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Thread-Index: AcfjbvpIYTU/QRwXSl2Yh9DW/X+nuw== X-Miltered: at concorde with ID 46CA0403.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocam'ole:01 mingw:01 toolchain:01 elegantly:01 mingw:01 o'caml:01 gcc:01 makefile:01 o'caml:01 msvc:01 interfaces:01 interfaces:01 hump:02 manipulate:04 suggests:04 Just been having a rummage around on the Hump and came across OCaml'OLE - a glance at the sample code suggests that it wraps COM interfaces quite elegantly (not as transparently as VB6 did, but somewhere close). The snag that I've hit is that I use the MinGW version of O'Caml built from source and don't really want to install the MSVC port alongside... has anyone managed to build OCaml'OLE using gcc+MinGW and if so do they have a Makefile? :o) The prospect of liberating a large application from VB.NET to O'Caml is very tempting - but I've got to be able to manipulate Word and Excel via their COM interfaces in order to have any hope! TIA, David PS. I'm aware that F# would be a sensible alternative... but I'm interested to see if O'Caml could do it too!