To allow access to the Win32 API from a scripting language (written in C), I would like to write a function such as the following:
void Call(LPCSTR DllName, LPCSTR FunctionName,
LPSTR ReturnValue, USHORT ArgumentCount, LPSTR Arguments[])
which will call, generically, any Win32 API function.
(the LPSTR parameters are essentially be...
Since both ruby and Haskell supports FFI,
Is it possible to call Haskell code from ruby, may be through FFI ?
Is there any Haskell binding in Ruby ?
...
I'm using the ffcall (specifically the avcall package of ffcall) library to dynamically push parameters to variadic functions. i.e. we have
int blah (char *a, int b, double c, ...);
and we want to call this function with values taken from the user. To do this, we create an avcall version of the function:
int av_blah (char *a, int b...
Hi,
I'm creating an application in RubyCocoa and I have this code:
fileContents = OSX::NSAttributedString.alloc.initWithData_options_documentAttributes_error_(data, null, null, outError)
It gives me this error:
2009-12-31 19:42:54.317 Ruby Text[3791:a0f] MyDocument#readFromData_ofType_error_: OSX::OCMessageSendException: Can't get O...
Hi stackoverflow
I've to do an interface (say, a wrapper) that allow a call from X86_64 assembly code using his calling convention to C function, with other calling convention. The best thing would be to be pretty "compiler independant" (juste modifying the wrapper), so i'm looking for something that puts registers/stack stuff on compi...
Hi,
I'd like to write an app-store-approvable app for the iPhone OS which uses libffi. Is this allowed? I am capable of rewriting all of the parts that use it with things like NSInvocation without too much trouble, but would prefer libffi. So my question is: would apps that use libffi be rejected from the app store?
...
Hi everyone -
I am having trouble building a working version of Python with ctypes using the Intel Compiler (11.1). The trouble is, that libffi under the ctypes module does not work properly when interfacing with e.g. OpenGL.
Originally, libffi did not compile using the Intel Compilers as __int128_t is not defined, and I followed the w...
I followed the instructions in the README, they are very simple
cd build
cmake ..
make install
The problem occurs after the make install command. Io will not compile, specifically because of the module CFFI. ld complains that my libffi.dylib is not 64-bit, and thus it won't link the .o files, and because of that, it then complains tha...