caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Benjamin Vadon" <benjamin.vadon@gmail.com>
To: caml-list@yquem.inria.fr
Subject: charger une DLL C dans programme ocaml
Date: Wed, 23 Apr 2008 00:25:25 +0200	[thread overview]
Message-ID: <1eb9f4cb0804221525p1dd69673h8883389f8372477c@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 990 bytes --]

Bonjour.
Je cherche, mais sans résultats concluant pour le moment, comment l'on
charge une DLL, codée en C, dans mon code ocaml.

J'explique un peu le projet pour que cela soit plus clair.
J'ai un matériel relié à un ordinateur, dont le code pour effectuer la
communication entre les deux est une DLL (dont j'ai le code source C, mais
auquel je ne voudrai pas toucher).
Je dois créer un logiciel graphique (gtk) qui communique avec ce matériel,
et ce faisant appel à la DLL, et j'aurai souhaité le développer en ocaml, au
lieu de c++ comme prévu au départ, pour divers raisons.
Le point qui me bloque donc pour me lancer dans le choix d'ocaml est de
savoir comment intégrer les appels à la DLL.
J'ai vu dans le manuel d'ocaml que l'on devait, pour la compilation, qu'il
suffisait de rajouter la DLL dans la ligne de compilation. Mais dans le code
ocaml, comment fais-je appel aux différentes fonctions ? Comme pour
n'importe quel code C ?

Merci de votre aide, par avance ^^

[-- Attachment #2: Type: text/html, Size: 1068 bytes --]

             reply	other threads:[~2008-04-22 22:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-22 22:25 Benjamin Vadon [this message]
2008-04-23  6:56 ` [Caml-list] " Christophe TROESTLER
2008-04-23  7:24   ` Benjamin Vadon

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=1eb9f4cb0804221525p1dd69673h8883389f8372477c@mail.gmail.com \
    --to=benjamin.vadon@gmail.com \
    --cc=caml-list@yquem.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).