Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] COM binding & CAMLIDL ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Dmitry Bely <dbely@m...>
Subject: Re: [Caml-list] COM binding & CAMLIDL ?
Samuel Lacas <> 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.

Probably yes, if you are going to use/create COM components with vtbl-style
interfaces. Support for IDispatch interfaces is very limited (see camlidl

> However, the release notes in the ocaml-win distribution states that
> the cygwin version lacks COM support,

In fact Cygwin gcc has all necessary COM libraries and camlidl can be
easily patched to support COM interfaces for Cygwin-build OCaml (I have
done that if you are interested).

> 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 ?


The native Win32 port has threads and COM support


In addition, Camlidl provides basic support for COM interfaces and
components under MS Windows.  It supports both using COM components
(usually written in C++ or C) from Caml programs, and packaging Caml
objects as COM components that can then be used from C++ or C.

[end of quote]

So yes, MSVC-compiled OCaml supports Camlidl and COM out-of-the-box.

Hope to hear from you soon,

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: