public int OpenConnection(sbyte *pConnectionString)
{
// Convert from simple character byte array to .Net String object
String connectionString = new String(pConnectionString);
try
{
// let the sibling method in the wrapped TSLibrary object contain the logic
return(TSLib.OpenConnection(connectionString));
}
catch (Exception e)
{
ErrorMessage = e.Message;
return(0);
}
}