Original Post
I have a DLL with a funciton declared with __declspec(dllexport) and extern "C", called foo. when I try typing the following in the Lua interpreter: loadlib('mydll.dll', 'foo')(); I get the following: stdin:1: attempt to call a null value stack traceback: stdin:1: in main chunk [C]: ? What am I doing wrong?