Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: clement.capel@free.fr
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] calling ocaml from VBA
Date: Wed, 27 Jul 2005 16:53:33 +0200	[thread overview]
Message-ID: <1122476013.42e79fed79322@imp6-q.free.fr> (raw)
In-Reply-To: <20050727045113.60227.qmail@web50304.mail.yahoo.com>


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
>



      parent reply	other threads:[~2005-07-27 15:10 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 ` [Caml-list] " James E. Scott
2005-07-27 11:53 ` Richard Jones
2005-07-27 14:53 ` clement.capel [this message]

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=1122476013.42e79fed79322@imp6-q.free.fr \
    --to=clement.capel@free.fr \
    --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