From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id B2E8ED402 for ; Wed, 27 Jul 2005 17:10:13 +0200 (CEST) Received: from postfix3-1.free.fr (postfix3-1.free.fr [213.228.0.44]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j6RFAD2s006219 for ; Wed, 27 Jul 2005 17:10:13 +0200 Received: from imp6-q.free.fr (imp6-q.free.fr [212.27.42.6]) by postfix3-1.free.fr (Postfix) with ESMTP id 5FC5C1734F9 for ; Wed, 27 Jul 2005 17:10:13 +0200 (CEST) Received: by imp6-q.free.fr (Postfix, from userid 33) id 908EC25725; Wed, 27 Jul 2005 16:53:33 +0200 (MEST) Received: from mailhost.trusted-logic.fr (mailhost.trusted-logic.fr [194.250.150.5]) by imp6-q.free.fr (IMP) with HTTP for ; Wed, 27 Jul 2005 16:53:33 +0200 Message-ID: <1122476013.42e79fed79322@imp6-q.free.fr> Date: Wed, 27 Jul 2005 16:53:33 +0200 From: clement.capel@free.fr To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] calling ocaml from VBA References: <20050727045113.60227.qmail@web50304.mail.yahoo.com> In-Reply-To: <20050727045113.60227.qmail@web50304.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 194.250.150.5 X-Miltered: at concorde with ID 42E7A3D5.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 ocaml:01 lib:01 argv:01 quoting:01 caml-list:01 beginner's:01 beginners:01 bug:01 capel:98 ...:98 functions:01 bin:01 caml:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=NO_REAL_NAME autolearn=disabled version=3.0.3 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 : > 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 >