Re: Lua wrappers[still no answer]
- Posted by Juergen Luethje <j.lue at gmx.de> Dec 18, 2005
- 514 views
petelomax wrote: > On Sat, 17 Dec 2005 06:21:08 -0800, "Juergen Luethje" said: > >> If for instance the file 'code_for_win.e' contains a line such as >> Shell32 = open_dll("shell32.dll") >> >> this will cause an error on DOS. > > It does not. For example: > > include dll.e > atom Shell32 > procedure x() > Shell32 = open_dll("shell32.dll") > end procedure > puts(1,"done") > if getc(0) then end if > > This runs fine on ex.exe. The problem is only if you actually call > the open_dll function on ex.exe. So the solution just is not to write such critical commands in top-level code, but to wrap them in routines. Thanks for the correction and for this information!! Regards, Juergen -- Money is the root of all evil. Send 20 Dollars for more info.