Test works fine in cmd.exe with my path and file name.
And I'm confused how to use these path and file name in code, such as embed 
Filepath to loadimage in Lua.


Thanks


  Sorry, that was a typo. 
  We can continue here. Once we solved I will post it there. Sometimes is less 
noise.
  The idea was to test using "arg" in the Lua interpreter. For instance:
D:\tecgraf\iup\bin\Win32\Lua53>lua53 d:\Downloads\loadimage.lua 
d:\downloads\blacksad1.jpg
d:\downloads\blacksad1.jpg
OK
Best,
Scuri


Em seg, 10 de set de 2018 ??s 11:47, ???? <robert...@qq.com> escreveu:Sorry, I 
don't quite get it.1. I change 'require"iupim"' to 'require"iupluaim"', 
otherwise I'd get "error loading module 'iupim' from file" .. "Can't find 
specify program".2. After change it, code could be ran.3. I didn't change or 
update anything other than iup-3.25. Should I ?
Problem still exist when 'file name and path contain multi-bytes characters', 
get "Failed" from print.And change a path and file would get "OK" as expected.

BTW, I send this mail directly to your gmail, should I send it to iup-user mail 
list?require"iup"
require"iupim"print [[....]]
ih = iup.LoadImage[[....]]if (not ih) then
  print "Failed"
else
  print "OK"
end

Attachment: loadimage.lua
Description: Binary data

_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to