Version française
Home     About     Download     Resources     Contact us    
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.

James

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.
>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
>
>
>  
>