Several things wrong:
1. You're passing in a pointer to a string and a list to a function that expects references.
2. Your function doesn't RETURN anything, and you're attempting to assign that non-existant return value to an object.
3. Use code brackets and post some source, and the actual error directly from the error window. Please only include RELEVANT code.