|
C#聊天程序(1)
/*===================================================================== 文件: Wintalk.CS 摘要: 演示如何使用 .net创建聊天程序 =====================================================================*/ using System; using System.IO; using System.Text; using System.Threading; using System.net; using System.net.Sockets; using System.Drawing; using System.Windows.Forms; class App{ // Entry point public static void Main(String[] args){ // If the args parse in known way then run the app if(ParseArgs(args)){ // Create a custom Talker object Talker talker = new Talker(endPoint, client); // Pass the object reference to a new form object TalkForm form = new TalkForm(talker); // Start the talker "talking" talker.Start(); // Run the applications message pump
|