English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] OCaml on Windows please advise
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-11-06 (18:53)
From: Nicolas Cannasse <warplayer@f...>
Subject: Re: [Caml-list] OCaml on Windows please advise
> I'd like to do GUI and other interfaces with one of the Windows RAD
> tools (e.g. Delphi) that is well-developed for such things and do
> back-end algorithms in OCaml.  For this to work the Windows way,
> the OCaml should probably be packaged as a COM server or DLL.  Is
> anyone doing this with good success?  Any details on how would be
> welcome.

You should perhaps consider packaging your Delphi GUI into a DLL with
exported function and then have the OCaml Runtime be your startup. It seems
easier because of the following :

- if you want an ocaml interpreter, you have to link your Delphi with the
ocamlrun.lib file, which is a MSVC one so not compatible with Borland
compiler and linker : you need to rebuild it with Borland tools and nobody
seems to have already done it

- there was some issues in 3.05 when you wanted to have a C "custom"
application running ocaml bytecode which was using a C DLL ( because the DLL
was calling OCaml C API function from ocamlrun.exe, which wasn't your main
interpreter ). I haven't check if this is resolved by the usage of
ocamlrun.dll in 3.06

Nicolas Cannasse

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