comparison lua/test/loadlib.lua @ 0:0cfcc391201f

initial from svn dyncall-1745
author Daniel Adler
date Thu, 19 Mar 2015 22:26:28 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0cfcc391201f
1 require"package"
2 msgbox = package.loadlib("user32","MessageBoxA")
3 print(msgbox)
4 dcCall(msgbox,"iSSi)v",0,"hello","world",0)
5 sqrt = package.loadlib("msvcrt","sqrt")
6 print(sqrt)
7 x = dcCall(sqrt,"d)d",144)
8 -- print(x)
9