I am a complete "noob" to C#, however I do know some C, although that is a good start, it's not enough. I have downloaded the most recent version of LuaInterface, and the download in cluded two files: lua51.dll, and LuaInterface.dll. I cannot figure out how to use this in my C# project, and be able to run Lua within it. If anyone can help, it would be great. Please don't use a very complicated explanation if you can. Thanks!
Asked
Active
Viewed 1,247 times
2 Answers
1
Right click on the project and select add reference. Then select the browse tab and select the dll's from their respective directories.

Skyrim
- 865
- 5
- 6
-
Note: this is if you are using Visual Studio for the project – Skyrim Jan 14 '12 at 02:03
-
What would I do if I was using Visual C#? Or are they the same thing? – Sam H Jan 14 '12 at 02:07
-
@SamH: Yes, they are the same thing. VC# is part of Visual Studio. – Nicol Bolas Jan 14 '12 at 02:10
-
haha, I'm glad to help; I had the same problem when I first started :p – Skyrim Jan 14 '12 at 02:14
-
I'm trying to learn C# so I can make games for the Xbox 360. I'm pretty far from that, though. – Sam H Jan 14 '12 at 02:26
0
You need to add references to the dlls. Note I had trouble getting the lua interface working for .net 4.0 and x64 machines. I had to download the source and recompile it myself. You can find the source here: http://www.lua.org/ftp/

Axis
- 826
- 7
- 22