From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA30675; Wed, 26 Dec 2001 19:45:19 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA30908 for ; Wed, 26 Dec 2001 19:45:19 +0100 (MET) Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id fBQIjIb24261 for ; Wed, 26 Dec 2001 19:45:18 +0100 (MET) Received: from citronier.wanadoo.fr (193.252.19.222) by mel-rto2.wanadoo.fr; 26 Dec 2001 19:45:18 +0100 Received: from warp (80.11.194.189) by citronier.wanadoo.fr; 26 Dec 2001 19:44:41 +0100 Message-ID: <12e101c18e3d$1eaa96d0$bdc20b50@warp> From: "Warp" To: "OCaml" Subject: [Caml-list] Callback in DLL Date: Wed, 26 Dec 2001 19:42:49 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello I got some problems passing a callback function value to a DLL, which will call the caml function when some event occurs. In fact, to use the callback_exn C API function, I have to link with the libcamlrun library, but that's not why I want to do because an interpreter ocamlrun ) is already running. Here's a proposal to resolve such a problem : a DLL should have an EntryPoint ( called CamlEntryPoint for exemple ) and when it's first load by the run-time system, it call the DLL EntryPoint function, passing both cprims and names_of_cprims arrays as parameters. Then we only have to add a "caml" callback func (useless in caml !) to enable DLL callback. I don't know how LabTk works... I'll have a look at it. Warp ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr