* William M Perry <wmperry(a)gnu.org> writes:
Ben Wing <ben(a)666.com> writes:
>> For Windows, I'd suggest to use wininet.dll: there is an already
>> implemented FTP there.
> is this a standard dll? [presumably]
Yup.
From experience, no. I used to put an installer on the TeXLive cdrom
using this dll, and got a bunch of messages stating that they even
couldn't run the program (I did not delay load the dll).
I could try and spend a few days un-GTK-ifying the foreign-function
interface (I've been meaning to do this for a while). Then,
depending on what the interface looks like (can someone send a
header file?), you could import the functions like this:
(import-function HANDLE InetOpen ((string . agent) (dword
. access-type) (string . proxy) (string . proxy-bypass) (dword
. flags)))
I have a couple of students which did this recently (however, the
result is not that clean). They can open a dll, call any function in
there, as long as you don't need structures (for the moment).
But there is something weird : many interesting functions need to be
given some callback function (for example : monitroing the progress of
your ftp transfer). What whould be great : be able to register
emacs-lisp functions as callbacks. Probably less easy however.
Fabrice Popineau