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] accessing COM server, example code ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-07-30 (12:19)
From: Dmitry Bely <dbely@m...>
Subject: Re: [Caml-list] accessing COM server, example code ? 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 Archives:
Bug reports: FAQ:
Beginner's list: