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 NAA27897; Sat, 18 May 2002 13:36:01 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA27903 for ; Sat, 18 May 2002 13:36:00 +0200 (MET DST) Received: from relay.rinet.ru (relay.rinet.ru [195.54.192.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g4IBZwf25578 for ; Sat, 18 May 2002 13:35:59 +0200 (MET DST) Received: (from uucp@localhost) by relay.rinet.ru (8.11.6/8.11.6) with UUCP id g4IBZwI17439 for caml-list@inria.fr; Sat, 18 May 2002 15:35:58 +0400 (MSD) X-Envelope-To: caml-list@inria.fr Received: from bely.stormoff (BELY) [192.168.0.10] by stormoff with esmtp (Exim 3.12 #1 (Debian)) id 1792O4-00067Z-00; Sat, 18 May 2002 15:28:36 +0400 X-Comment-To: Xavier Leroy To: caml-list@inria.fr Subject: Re: [Caml-list] COM binding & CAMLIDL ? References: <20020516112943.A8960@ouessant.trusted-logic.fr> <20020518114830.A25881@pauillac.inria.fr> From: Dmitry Bely Date: Sat, 18 May 2002 15:28:36 +0400 In-Reply-To: <20020518114830.A25881@pauillac.inria.fr> (Xavier Leroy's message of "Sat, 18 May 2002 11:48:31 +0200") Message-ID: <4rh5vgnv.fsf@mail.ru> User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.5 (bok choi, i586-pc-win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Xavier Leroy writes: >> Reading a recent thread on the list, I noticed that ocaml could be >> used with COM components on windows. As I currently intensively use >> the Python COM bindings with MS' text processor whose name I won't >> say, I wonder if I could use ocaml to the same end. >> However, the release notes in the ocaml-win distribution states that >> the cygwin version lacks COM support, and the native win32 version >> partially implements the libraries, among which I find no COM nor IDL >> link. Does anyone on the list have more information ? BTW, OcamlIDL can be easily patched to support COM under Cygwin, are you interested in that? [...] > CamlIDL implements (most of) the "pure COM" approach, but is geared > towards statically-typed, statically-known interfaces (on ne se refait > pas, as we say in French), and is not suited to Automation. > > Microsoft applications use mostly (exclusively?) Automation to allow > scripting. The reason is that Microsoft pushes Visual Basic as the > scripting language for their applications, although non-Microsoft > dynamically-typed scripting languages such as Perl and Python have > also been quite successful at that, I think most of them use dual (custom/dispatch) interfaces, so *theoretically* one can extract their IDL interface definition by OleView tool and then create the necessary stubs by CamlIDL. But *practically* it is not an easy task: many MIDL features are still not supported by CamlIDL, so I gave up when I tried this recently... Hope to hear from you soon, Dmitry ------------------- 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