[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua console in Windows and other questions
- From: Jerome Vuarand <jerome.vuarand@...>
- Date: Thu, 13 Oct 2011 14:02:59 +0200
2011/10/12 Stephen Blackwell - Applications Engineering <sblackwell@raydon.com>:
> Eventually, I need to bind a function that returns a pointer and this
> has to be a 64bit pointer.
> I've been googling around and there seems to be some issues using lua on
> 64bit machines but so far I have not found a definitive answer.
> So can anyone say for sure if I can bind to a function that returns a
> pointer on a 64 bit machine?
I can only talk about AMD64/EM64T flavours of 64bit Windows, if you're
on IA64 just ignore my email. On that platform, 32bit and 64bit code
cannot be mixed in the same process. If the code that returns the
pointer is 64bit code (in a DLL I assume), you need a 64bit process to
call it. So you either need to build Lua in 64bit (IIRC Lua for
Windows has a 64bit counterpart), or you have to create (or find)
another executable and run it from your 32bit Lua (with os.execute or
io.popen) or use some other IPC mechanism.