Incorrect answer in dll import in Python
Question: In my Python script I'm importing a dll written in VB.NET. I'm calling a
function of initialisation in my script. It takes 2 arguments: a path to XML
file and a string. It returns an integer - 0 for success, else error. The
second argument is passed by reference. So if success, it will get updated
with success message. Otherwise, get updated with error message.

When my script receives the integer, I should print the message in the second
variable. I'm not able to do that.


Answer: Python strings are immutable. There is no way the string can be changed inside
the function.

So what you really want is to pass a _char buffer_ of some sort. You can
create those in python using the `ctypes` module.

Please edit the question and paste a minimal snippet of the code so we can
test and give more information.

