[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Can't Run .lua Script From Within C Program
- From: "Shawn LeBlanc" <wrlddomprod@...>
- Date: Mon, 28 Feb 2000 11:53:57 -0800
Greetings!
I'm not sure if anyone reads this group anymore, but here
goes:
I'm trying to run .lua scripts from within a c Win32 console
application. The only things I'm doing within the C app is
calling:
lua_open();
lua_dofile("hello.lua"); //hello.lua being from the examples
lua_close();
and the script only has this line:
write("hello world, from Lua!\n")
But it doesn't work. The lua_dofile() returns 1 and I get the
message "call expression not a function". What I'm doing is
pretty basic, and to me logical, but it's not working.
Any suggestions?
with milk and cookies,
Shawn