[DllImport("dllName.dll"]
public static extern IntPtr STTSConnect(string serial,string ip);试试,你的信息不全。TTSCHAR的宏定义没有,也无法给出准确答案。