lua-users home
lua-l archive

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


Jeff Wise wrote:
Now I get “unknown at param ‘p’ at statement 58”. This statement reads: hnd = FindFirstFile("*.*", wfd);

There is no ‘p’ in this statement.  I must have installed Lua wrong.

Try to change the following in test.lua:

Line 31:
- FindFirstFile = dllimport("KERNEL32","FindFirstFileA","P=pp")
+ FindFirstFile = dllimport("KERNEL32","FindFirstFileA","P=PP")

Line 35:
- FindClose = dllimport("KERNEL32","FindClose","i=p")
+ FindClose = dllimport("KERNEL32","FindClose","i=P")

--
Shmuel