ercag / luaforwindows

Automatically exported from code.google.com/p/luaforwindows
0 stars 0 forks source link

cannot access the IUP-IM Functions iup.GetNativeHandleImage iup.SaveImage and iup.LoadImage #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. see below
2.
3.

What is the expected output? What do you see instead?
assume that converts native image to iup image
instead get

wlua: test3.wlua:14: attempt to call field 'GetNativeHandleImage' (a nil value)
stack traceback:
    test3.wlua:14: in main chunk
    [C]: ?
image_avail YES
nimage  userdata: 02030004

What version of the product are you using? On what operating system?
5.1.4-40 (iup 3.2.0) on vista and Win2K. (I also copied the most recent 
iup/cd/im DLL's from LuaBinaries but it didn't help)

Please provide any additional information below.

require"iuplua"
require"imlua"
require"cdlua"
require"cdluaim"
require"iupluacd"
require"iupluaim"

local clipboard= iup.clipboard{}
local image_avail= iup.GetAttribute(clipboard, "IMAGEAVAILABLE")
print("image_avail",image_avail)
if image_avail == "YES" then
    local nimage= iup.GetAttribute(clipboard, "NATIVEIMAGE")
    print("nimage",nimage)
    local clipboard_image= iup.GetNativeHandleImage(nimage)
    print("clipboard_image",clipboard_image)
end

>wlua "test2.wlua"
wlua: test2.wlua:28: attempt to call field 'GetNativeHandleImage' (a nil value)
stack traceback:
    test2.wlua:28: in main chunk
    [C]: ?
image_avail    YES
nimage    userdata: 00C20004
>Exit code: 1

Original issue reported on code.google.com by mike.cas...@gmail.com on 17 Jan 2011 at 1:40

Attachments:

GoogleCodeExporter commented 8 years ago
This project is just a combination of the modules that make up a distrobution 
of Lua. We don't develop the modules here. Please post this to the Lua Mailing 
list (http://www.lua.org/lua-l.html) for further help.

Original comment by rpusz...@gmail.com on 17 Jan 2011 at 2:14