EDIT: I just realized this is defined as a MACRO, not a function. How the heck would I import a macro from a DLL to C#? (this may have to be a new question).
This is related to a question I just asked:
How Do I Properly Return A Char From An Unmanaged Dll To C#?
Some of the answers suggested I change the function signature to IntPtr or StringBuilder. I also saw these solutions on a few sites in my googling, most notably here. (There were others, but I don't have time to hunt down the links).
Function signature:
[DllImport("api.dll")] internal static extern char[] errMessage(int err);
If I change the return type, my call throws the following exception:
"Unable to find an entry point named 'errMessage' in DLL"
I can't imagine people would suggest this if it didn't work. Am I doing something wrong here? Is there something missing? Sad to say, but my C/C++ skills are terrible, so I could be missing something really simple. Thanks for any help.
EDIT: Function signature from documentation:
char * errMessage(int err);