caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Warp" <warplayer@free.fr>
To: "OCaml" <caml-list@inria.fr>
Subject: [Caml-list] Callback in DLL
Date: Wed, 26 Dec 2001 19:42:49 +0100	[thread overview]
Message-ID: <12e101c18e3d$1eaa96d0$bdc20b50@warp> (raw)

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


             reply	other threads:[~2001-12-26 18:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-26 18:42 Warp [this message]
2001-12-28  8:49 ` Xavier Leroy
2001-12-28 12:55   ` Warp
2002-01-03 14:34     ` Xavier Leroy

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='12e101c18e3d$1eaa96d0$bdc20b50@warp' \
    --to=warplayer@free.fr \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).