lua-users home
lua-l archive

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


Hi, I'm new to Lua and I'm also more used to Linux than Windows so these
questions probably seem very basic.

How do I get a Lua console in Windows? I expected that just typing lua
an the command prompt would work but it doesn't.

I'm using Windows 7 Ultimate and Lua 5.1. I have compiled Lua and
luabind and I'm experimenting with the examples given here:
 
http://www.nuclex.org/articles/5-cxx/1-quick-introduction-to-luabind
which work fine.

The reason I'm asking is that I'm trying to modify the function to
return an int and then print the result but from what I've read, trying
to write to stdout (or rather the Windows equivalent) won't work because
lua doesn't know about stdout. So now I want to make a dll and use the
lua console to load the library as described in section 5.1 here:
       http://www.rasterbar.com/products/luabind/docs.html

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?

Thanks
Steve



Privileged/Confidential Information may be contained in this email.  If you are not the addressee indicated in this email (or responsible for delivery of the message to such person), you may not copy or deliver this email to anyone.  In such case, you should destroy this email and kindly notify the sender by phone at (386) 267-2936.  Please advise immediately if you or your employer do not consent to emails of this kind. Not for release to foreign persons: controlled under U.S. Federal Regulations. Opinions, conclusions and other information in this email that do not relate to the official business of Raydon Corporation shall be understood as neither given nor endorsed by it.