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: 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)


regards

Clément



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
>