[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [LuaJIT] Where can I ask help for LuaJIT ffi related problems?
- From: Peter Cawley <lua@...>
- Date: Tue, 7 Jun 2011 23:50:58 +0100
Callbacks are rather hard to do with the current LuaJIT. One approach
is to perform some call stack contortions so that invocations of the
callback turn into returns to Lua. On Windows, the fiber API can be
used to perform the contortions, which does the really hard part for
you.
My attempt at doing so is: http://pastebin.com/r9WxJ6iP
This currently only works for x86 Windows, as support for x64 would
require different machine code.
On Tue, Jun 7, 2011 at 3:47 PM, Attila <ejjeliorjarat@gmail.com> wrote:
> Hello All,
>
> I am just starting get familiar with LuaJIT's FFI interface, and what can I
> say... It's GREAT! I want to improve my programs with that, but my C/C++
> skills are weak. Where can I find/ask for help about it? I think this is not
> the best place, because it's Lua forum, LuaJIT is an another project, but I
> haven't found mailing list address on LuaJIT's homepage...
> I want to find a window on Windows systems. I was able to do that with
> FindWindowA, but I need a child-window's title (from a browser. If that page
> is selected what I need, the title is ok, but if an another one is selected,
> I should use EnumChildWindows, which needs a CALLBACK parameter). I have no
> idea how can I do it.... Can somebody help me in it?