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
calling ocaml from VBA
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-07-27 (15:10)
From: clement.capel@f...
Subject: Re: [Caml-list] calling ocaml from VBA

yes, you can. but it's a little bit long and technical ...
- write you ocaml files.
- use the ocaml/C binding to generate C object files.
- create a C++ dll to call your C functions.
- In this dll you have to map C values to VBA values (COM objects).

- then (and finally), for instance:

Declare Your_function Lib "your_dll.dll" _
(ByRef argv() As String) As String

(the dll must be in the PATH)



Quoting Lars Schouw <schouwla@yahoo.com>:

> How I call ocaml code from VBA?
> Can I warp the compiled ocaml code into a dll somehow?
> Then I can use 'declare funcion' in VBA.
> Lars
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs