[racket] Access c based dll through ffi

From: heraklea at gmx.de (heraklea at gmx.de)
Date: Tue Feb 19 07:30:58 EST 2013

Hello Danny,

here you are:

C++ Code:

[Code_Begin]
#include <stdio.h>

extern "C"
{
  __declspec(dllexport) void DisplayHelloFromDLL()
  {
    printf ("Hello from DLL !\n");
fflush(stdout);
  }
}

[Code_End]

(define-ffi-definer define-dreamlog (ffi-lib "D:\\__w32\\DreamLogging\\x64\\Release\\DreamLogging.dll"))


(define-dreamlog DisplayHelloFromDLL (_fun  -> (r : _void)))
(DisplayHelloFromDLL)

Result: No output.


Yours,

Posted on the users mailing list.