[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cinvoke-dev] Question: cinv.string_to_chararray lua binding
From: |
Arjen P. de Vries |
Subject: |
[cinvoke-dev] Question: cinv.string_to_chararray lua binding |
Date: |
Thu, 03 Aug 2006 17:38:35 +0200 |
Hi,
I was trying to use cinvoke, and first experiment worked fine,
but now I want to call a function with parameter char** and have not
been successful so far.
I ended up doing:
require("cinvoke_lua")
c = cinv.string_to_chararray("Test", true)
print("c[1] = " .. c[1])
which gives the error message:
lua: attempt to index a string value
stack traceback:
[C]: in function 'string_to_chararray'
t.lua:2: in main chunk
[C]: ?
Am I doing something wrong?
Arjen
- [cinvoke-dev] Question: cinv.string_to_chararray lua binding,
Arjen P. de Vries <=