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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id A9A5CD17A for ; Wed, 27 Jul 2005 09:51:55 +0200 (CEST) Received: from cujo.runbox.com (aibo.runbox.com [193.71.199.94]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j6R7psOx012327 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 27 Jul 2005 09:51:55 +0200 Received: from [10.9.9.1] (helo=bolivar.runbox.com) by greyhound.runbox.com with esmtp (Exim 4.34) id 1Dxghm-00037H-QW; Wed, 27 Jul 2005 09:51:54 +0200 Received: from [81.64.235.26] (helo=[81.64.235.26]) by bolivar.runbox.com with asmtp (uid:160313 ) (Exim 4.34) id 1Dxghm-00051l-0A; Wed, 27 Jul 2005 09:51:54 +0200 Message-ID: <42E73D1C.7060807@lexifi.com> Date: Wed, 27 Jul 2005 09:51:56 +0200 From: "James E. Scott" User-Agent: Debian Thunderbird 1.0.2 (X11/20050602) X-Accept-Language: en-us, en MIME-Version: 1.0 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> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 42E73D1B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; lexifi:01 caml-list:01 ocaml:01 callable:01 ocaml:01 toplevel:01 stdin:01 stdout:01 caml-list:01 beginner's:01 beginners:01 bug:01 wrote:01 expression:01 bin:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 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 > > > >