0

i am referring to "SomeClass" on the NLua home page. Let#s assume that this has been compiled into assembly "SomeClass".

When i want to use it in Lua, i should be abler to refer to it using:

import ('SomeClass', 'SomeClass') myclass=SomeClass() -- to call the constructor func1=myclass:Func1() -- to call Func1

Correct? At leat this is how in the samples the standard .Net Assemblies are used. I am however always failing. "Someclass" is always nil.

Unfortunately the samples always refer to using lua with "DoString" inside the C# object. But i'd like to use that from within Nlua.exe.

Any hint?

thanks,

Helmut

EDIT: Ok, i am a bit further. Using Debug, i found out that the import is loading my assembly correctly. But when i want to get an instance of my assembly, i get an error:

enter image description here

Helmut
  • 105
  • 1
  • 9

1 Answers1

0

Had an error in the Namespace. One character was lower case as opposed to be uppercase. Fixed it and it is ok now.

Helmut
  • 105
  • 1
  • 9