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 OAA25672; Tue, 30 Jul 2002 14:19:08 +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 OAA25768 for ; Tue, 30 Jul 2002 14:19:07 +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 g6UCJ5j01227 for ; Tue, 30 Jul 2002 14:19:06 +0200 (MET DST) Received: (from uucp@localhost) by relay.rinet.ru (8.11.6/8.11.6) with UUCP id g6UCJ5210549 for caml-list@inria.fr; Tue, 30 Jul 2002 16:19:05 +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 17ZVto-0004L3-00; Tue, 30 Jul 2002 16:14:48 +0400 X-Comment-To: udo_goebel@gmx.net To: caml-list@inria.fr Subject: Re: [Caml-list] accessing COM server, example code ? References: <11186.1028028264@www10.gmx.net> From: Dmitry Bely Date: Tue, 30 Jul 2002 16:14:49 +0400 In-Reply-To: <11186.1028028264@www10.gmx.net> (udo_goebel@gmx.net's message of "Tue, 30 Jul 2002 13:24:24 +0200 (MEST)") Message-ID: User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Economic Science (Windows [1]), i586-pc-win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk udo_goebel@gmx.net writes: > I have to access a COM component on win2k. After reading the camlidl doc > this seems to be all right with ocaml. Are there serious restrictions of doing > this within ocaml compared to e.g. C, C++? Currenly only custom (C++ vtable style) interfaces are supported for COM clients written using Ocaml/camlidl. Dispatch interfaces are not supported yet. Among many other things, this means that you will need .idl definition files for your COM server, type libraries are not enough. You can generate .idl from type libraries using Microsoft's OleView tool, but for compex cases that's not an easy task. > Is there some example code around > of how to do it in practice in ocaml? Look at examples in camlidl distribution. - Dmitry Bely ------------------- 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