A
Andrea
Hy
I have a litle problem :
I have to invoke a function in an unmanaged dll (writen in C) from C#
------------------------------------------------
int string_modify(unsigned char* myparameter)
--------------------------------------------------
how to declare this function in C# ?
I tried
--------------------------------
[DllImport("engip11bridge.dll")]
public static extern int string_modify(
StringBuilder testString
);
-----------------------------------------------
but the StringBuilder class is null terminated, while myparameter may
contain some nulls and in this case I lose part of the buffer .
Any suggestion ??
Andrea
I have a litle problem :
I have to invoke a function in an unmanaged dll (writen in C) from C#
------------------------------------------------
int string_modify(unsigned char* myparameter)
--------------------------------------------------
how to declare this function in C# ?
I tried
--------------------------------
[DllImport("engip11bridge.dll")]
public static extern int string_modify(
StringBuilder testString
);
-----------------------------------------------
but the StringBuilder class is null terminated, while myparameter may
contain some nulls and in this case I lose part of the buffer .
Any suggestion ??
Andrea