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 (07:51)
From: James E. Scott <james.scott@l...>
Subject: Re: [Caml-list] calling ocaml from VBA

Hi Lars!

we do something like the following:

- write a DLL which is a 'client' and which has a function 
(eval_expression) callable from VBA (written in C and caml).

- write a server, which is an ocaml toplevel but which marshals it's IO. 
Then the client runs the server and talks to it through stdin/stdout.

The client/server part is optional I suppose but it is nice not to share 
the same address space as Excel.

All ocaml return data types get mapped into a VB variant type.


Lars Schouw wrote:

>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.
>Start your day with Yahoo! - make it your home page 
>Caml-list mailing list. Subscription management:
>Archives: http://caml.inria.fr
>Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>Bug reports: http://caml.inria.fr/bin/caml-bugs