lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Chris Tavares wrote:
>
> If you're looking for Windows only, check out:
>
> http://www.wdj.com/archive/0908/feature.html
>
> It's a C function that lets you call arbitrary DLL functions. All
> you'd need
> to do is provide a Lua wrapper around this guy to set up the
> inputs and read
> the outputs. This function already does the REALLY hard work of setting up
> the stack, calling convention, etc.
>
> -Chris

Thank you very much, this is exactly what I was looking for!
Too bad it is compiler dependent (although it supports two of the most
populars), and have inline assembly code (so it isn't portable for Alpha or
Epoc, plus I have less control on it)...
But it resolves a problem far more complex than I though.

Regards.

--._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
--´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`--