Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Dmitry Bely <dbely@m...>
Subject: Re: [Caml-list] accessing COM server, example code ?
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