[Chicken-users] Calling routines in kernel32.DLL

2006-07-07 Thread Chess Player
In order to position the cursor in Windows' console I've been doing this in newLisp: (import "kernel32.DLL" "GetStdHandle") (import "kernel32.DLL" "SetConsoleCursorPosition" ) (constant 'STD_OUTPUT_HANDLE 0xfff5) (define (cons-output-handle) (GetStdHandle STD_OUTPUT_HANDLE)) (define (set-

Re: [Chicken-users] Calling routines in kernel32.DLL

2006-07-09 Thread Kon Lovett
On Jul 7, 2006, at 6:16 PM, Chess Player wrote: In order to position the cursor in Windows' console I've been doing this in newLisp: (import "kernel32.DLL" "GetStdHandle") (import "kernel32.DLL" "SetConsoleCursorPosition" ) (constant 'STD_OUTPUT_HANDLE 0xfff5) (define (cons-output-handle)

Re: [Chicken-users] Calling routines in kernel32.DLL

2006-07-09 Thread Chess Player
--- Kon Lovett <[EMAIL PROTECTED]> wrote: > On Jul 7, 2006, at 6:16 PM, Chess Player wrote: > > How would I call the DLL routine "SetConsoleCursorPosition" > > in Chicken? > > AFAIK you can't. The entire Chicken interface to dynamic loading is > oriented to loading Chicken libraries. > > FWIW

Re: [Chicken-users] Calling routines in kernel32.DLL

2006-07-10 Thread Thomas Chust
On Sun, 9 Jul 2006, Chess Player wrote: --- Kon Lovett <[EMAIL PROTECTED]> wrote: On Jul 7, 2006, at 6:16 PM, Chess Player wrote: How would I call the DLL routine "SetConsoleCursorPosition" in Chicken? AFAIK you can't. The entire Chicken interface to dynamic loading is oriented to loading

Re: [Chicken-users] Calling routines in kernel32.DLL

2006-07-10 Thread felix winkelmann
A win32 port of libffi seems to be available here: http://svn.plt-scheme.org/plt/trunk/src/foreign/libffi_msvc/ It shouldn't be hard to port to chicken. Unless someone else wants to give it a try, I can do so, but may need a short while. cheers, felix

Re: [Chicken-users] Calling routines in kernel32.DLL

2006-07-11 Thread Kon Lovett
On Jul 10, 2006, at 10:19 PM, felix winkelmann wrote: A win32 port of libffi seems to be available here: http://svn.plt-scheme.org/plt/trunk/src/foreign/libffi_msvc/ It shouldn't be hard to port to chicken. Unless someone else wants to give it a try, I can do so, but may need a short while.

Re: [Chicken-users] Calling routines in kernel32.DLL

2006-07-11 Thread Kon Lovett
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jul 10, 2006, at 10:19 PM, felix winkelmann wrote: A win32 port of libffi seems to be available here: http://svn.plt-scheme.org/plt/trunk/src/foreign/libffi_msvc/ It shouldn't be hard to port to chicken. Unless someone else wants to give it a t

Re: [Chicken-users] Calling routines in kernel32.DLL

2006-07-11 Thread felix winkelmann
On 7/12/06, Kon Lovett <[EMAIL PROTECTED]> wrote: Actually Windows is already supported using a GNU derived compiler . The PLT stuff was modified to allow compilation by Visual C (which I don't have). However the regular libffi distro compiles for me using MinGW. Now I just need to hack the tes