Pointers in C#
hi,
Any one can help me in the following
i have two functions in "dll.dll" as
int addition(int a,int b);
char* functionname (char* string);
i'm calling this function in C#.NET program using
[DllImport("dll.dll")]
static extern int addition(int a,int b);
how can i declare the character pointer in C# .
but i didn't try IntPtr,can any one help me using unsafe code.
Thanks
prakash
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Mike GoldRank #50 · 30.6K pointsPosted Aug 18, 2005, 8:42 PM EDT
should use StringBuilder to marshal it.