lua-users home
lua-l archive

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

mark greenlancer wrote:

| I also tried only lua_tonumber(1)
|
| The complete error msg is
| "s_mainwnd.lua:5: attempt to call global `lua_tonumber' (a nil value)"
|
| The lua source:
~     ============
lua_tonumber(lua_State *, int) is a C-function, and not a lua-function!


| -- deskGetDesktopSize(a,b,c,d)
| deskGetDesktopSize()
| lua_tonumber(1)
| deskMainWndMove(200,200,500,500)

To get the four return values from your C-Function, write in lua:

- -- Start of Lua code --
left, top, right, bottom = deskGetDesktopSize()
deskMainWndMove(left, top, right, bottom)
- -- End of Lua code --


-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBG0DGSIrOxc3jOmoRAmAeAKCjJwZNRSKHDwEPXmAdAaxVe7fKVwCgxtxw
yAf0RgtBK7AMBnZA+9y7nX8=
=2kiz
-----END PGP SIGNATURE-----