Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
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:
>Beginner's list:
>Bug reports: