<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/07/97039d8d374f970e1df62a1e90933083"
  from="Dmitry Bely &lt;dbely@m...&gt;"
  author="Dmitry Bely"
  date="2002-07-30T12:19:08"
  subject="Re: [Caml-list] accessing COM server, example code ?"
  prev="2002/07/c2213777c53be1e9911cdba2fdcaabd7"
  next="2002/07/1c4970cfde7596bd9b15e0902376769d"
  prev-in-thread="2002/07/56182841fd4a30e84867112a7203b169"
  prev-thread="2002/07/b76869ca9f319eef1e10b97e5b761304"
  next-thread="2002/07/6fde813e86b5c311598ecb31e7fe92ba"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] accessing COM server, example code ?">
<msg 
  url="2002/07/56182841fd4a30e84867112a7203b169"
  from="udo_goebel@g..."
  author="udo_goebel@g..."
  date="2002-07-30T11:24:27"
  subject="[Caml-list] accessing COM server, example code ?">
<msg 
  url="2002/07/97039d8d374f970e1df62a1e90933083"
  from="Dmitry Bely &lt;dbely@m...&gt;"
  author="Dmitry Bely"
  date="2002-07-30T12:19:08"
  subject="Re: [Caml-list] accessing COM server, example code ?">
</msg>
</msg>
</thread>

<contents>
udo_goebel@gmx.net writes:

&gt; I have to access a COM component on win2k. After reading the camlidl doc
&gt; this seems to be all right with ocaml. Are there serious restrictions of doing
&gt; 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.

&gt; Is there some example code around
&gt; 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

</contents>

</message>

