i need to send a string from a text box to a certain
function that receives char* type
how can i do the convertion?
thanks
function that receives char* type
how can i do the convertion?
thanks
[DllImport("genClient.dll", EntryPoint = "genLogin",SetLastError = false, CharSet = CharSet.Auto)]
public static extern int genLogin(string name);
//and this is the call to the function:
int reply;
string s;
reply = genLogin(s);
Comment