i have a function with 2 parameters in c. both of them are char *.
one of them is input and another one is output and i don' know what should I fill the second one (output) please help me
// C
void func1(char * i_szInput , char * o_szOutput)
{
printf("%s\n" , i_szInput );
strcpy(o_szOutput , "Hello");
}
// C#
[DllImport("Test.dll")]
public static void func1([MarshalAs(UnmanagedType.LPStr)] string str1,
[MarshalAs(UnmanagedType.LPStr)] string str2);
// .......
string str = null;
func1("mytest" , str);
StringBuilder