caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Callback in DLL
@ 2001-12-26 18:42 Warp
  2001-12-28  8:49 ` Xavier Leroy
  0 siblings, 1 reply; 4+ messages in thread
From: Warp @ 2001-12-26 18:42 UTC (permalink / raw)
  To: OCaml

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-01-03 14:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-26 18:42 [Caml-list] Callback in DLL Warp
2001-12-28  8:49 ` Xavier Leroy
2001-12-28 12:55   ` Warp
2002-01-03 14:34     ` Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).