Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "James E. Scott" <james.scott@lexifi.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] calling ocaml from VBA
Date: Wed, 27 Jul 2005 09:51:56 +0200	[thread overview]
Message-ID: <42E73D1C.7060807@lexifi.com> (raw)
In-Reply-To: <20050727045113.60227.qmail@web50304.mail.yahoo.com>


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


  reply	other threads:[~2005-07-27  7:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-27  4:51 Lars Schouw
2005-07-27  7:51 ` James E. Scott [this message]
2005-07-27 11:53 ` [Caml-list] " Richard Jones
2005-07-27 14:53 ` clement.capel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42E73D1C.7060807@lexifi.com \
    --to=james.scott@lexifi.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox