• 大小: 5.69MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-16
  • 语言: C#
  • 标签: IM  即时通讯  C#  数据库  

资源简介

IM即时通讯源码(C#开发)有数据库,适合开发借鉴和新手,下载请评论,

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace LanMsg
{
    static class Program
    {
        /// 
        /// The main entry point for the application.
        /// 

        [STAThread]
        static void Main()
        {
            IMLibrary.OleDb.DataAccess.ConStr = “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Record.db;Persist Security Info=true;“;////;UID=Admin=admin;PWD=liggyiFormAccess.settings.LanMsgConnectionString;//初始化数据联接字符串

            FormAccess.settings.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(settings_PropertyChanged);

            ///初始化表情
            for (int i = 0; i < 195; i++)
                FormAccess.ImageListFace.Images.Add(i.ToString() (System.Drawing.Image)FormAccess.resourceManager.Getobject(“_“ + i.ToString()));


            FormAccess.ServerIP = System.Net.IPAddress.Parse( FormAccess.resourceManager.GetString(“ServerIp“));
            FormAccess.ServerPort = Convert.ToInt32(FormAccess.resourceManager.GetString(“ServerPort“));

            //if (My.Network.IsAvailable && !My.Network.Ping(FormAccess.resourceManager.GetString(“ServerIp“)))
            //{
            //    MessageBox.Show(“与LanMsg服务器的网络连接已经中断,可能登录会不成功!“ “提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
            //}

            FormAccess.SetRegistryKey();

            //if (!System.IO.File.Exists(Application.StartupPath + “\\DevComponents.DotNetBar2.dll“) ||
            //    !System.IO.File.Exists(Application.StartupPath + “\\Record.dll“) ||
            //    !System.IO.File.Exists(Application.StartupPath + “\\IMLibrary.dll“))
            //{
            //    MessageBox.Show(“程序所需要的组件已经丢失,请重新安装LanMsg!“ “提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
            //    return;
            //}  

            //string TempFile = Application.StartupPath + “\\DevComponents.DotNetBar2.dll“;
            //byte[] b = new byte[1];

            //long fLength;

            //if (!System.IO.File.Exists(TempFile))
            //{
            //    System.IO.Stream tobjStream0 = FormAccess.resourceManager.GetStream(“DevComponents_DotNetBar2“); 
            //    System.IO.Stream f0 = new System.IO.FileStream(TempFile System.IO.FileMode.CreateNew);
            //    fLength = tobjStream0.Length;
            //    for (int i = 0; i < fLength; i++)
            //    {
            //        tobjStream0.Read(b 0 1);
            //        f0.WriteByte(b[0]);
            //    }
            //    f0.Flush();
            //    f0.Close();
            //    tobjStream0.Close();
            //}

            //TempFile = Application.StartupPath + “\\Record.dll“;
            //if (!System.IO.File.Exists(TempFile))
            //{
            //    System.IO.Stream tobjStream1 = FormAccess.resourceManager.GetStream (“Record“);
            //    System.IO.Stream f1 = new System.IO.FileStream(Tem

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1223  2007-11-11 09:21  softhy.net\C#_IM\IM\LanMsg\app.config

     文件      24513  2008-03-07 02:53  softhy.net\C#_IM\IM\LanMsg\Class\dataAccess.cs

     文件       2276  2008-03-02 12:58  softhy.net\C#_IM\IM\LanMsg\Class\exDepartment.cs

     文件        456  2007-08-08 17:43  softhy.net\C#_IM\IM\LanMsg\Class\exDepartmentCollention.cs

     文件       1080  2007-11-12 10:45  softhy.net\C#_IM\IM\LanMsg\Class\exNode.cs

     文件       5036  2008-03-11 00:36  softhy.net\C#_IM\IM\LanMsg\Class\exUser.cs

     文件        481  2007-08-15 20:08  softhy.net\C#_IM\IM\LanMsg\Class\exUserCollention.cs

     文件      30676  2008-03-13 23:57  softhy.net\C#_IM\IM\LanMsg\Class\FormAccess.cs

     文件       4373  2008-03-05 17:03  softhy.net\C#_IM\IM\LanMsg\Class\Group.cs

     文件       1363  2007-11-03 23:32  softhy.net\C#_IM\IM\LanMsg\Class\My.cs

     文件        933  2008-01-07 20:24  softhy.net\C#_IM\IM\LanMsg\Class\RecordIndexCollention.cs

    ..A.SHR       369  2008-03-06 13:26  softhy.net\C#_IM\IM\LanMsg\Class\vssver2.scc

     文件       3262  2007-07-26 04:36  softhy.net\C#_IM\IM\LanMsg\community.ico

     文件      18214  2007-12-15 21:24  softhy.net\C#_IM\IM\LanMsg\controls\MyAV.cs

     文件      10363  2007-08-29 08:51  softhy.net\C#_IM\IM\LanMsg\controls\MyAV.resx

     文件       1424  2007-11-06 17:53  softhy.net\C#_IM\IM\LanMsg\controls\NodeSuperTooltipProvider.cs

     文件       8074  2008-03-13 23:59  softhy.net\C#_IM\IM\LanMsg\controls\p2pFileTransmit.cs

     文件      15746  2008-03-13 23:59  softhy.net\C#_IM\IM\LanMsg\controls\p2pFileTransmit.Designer.cs

     文件      27546  2008-03-13 23:59  softhy.net\C#_IM\IM\LanMsg\controls\p2pFileTransmit.resx

     文件      17489  2008-03-11 00:37  softhy.net\C#_IM\IM\LanMsg\controls\sendMsgPanle.cs

     文件      18096  2008-03-10 09:04  softhy.net\C#_IM\IM\LanMsg\controls\sendMsgPanle.Designer.cs

     文件      21187  2008-03-10 09:04  softhy.net\C#_IM\IM\LanMsg\controls\sendMsgPanle.resx

     文件       9599  2008-03-13 23:59  softhy.net\C#_IM\IM\LanMsg\controls\Update.cs

     文件       7418  2008-03-13 23:59  softhy.net\C#_IM\IM\LanMsg\controls\Update.Designer.cs

     文件       7188  2008-03-13 23:59  softhy.net\C#_IM\IM\LanMsg\controls\Update.resx

     文件      51720  2008-03-13 23:49  softhy.net\C#_IM\IM\LanMsg\controls\UsersOpt.cs

     文件       8030  2008-03-03 09:50  softhy.net\C#_IM\IM\LanMsg\controls\UsersOpt.Designer.cs

     文件      19887  2008-03-03 09:50  softhy.net\C#_IM\IM\LanMsg\controls\UsersOpt.resx

    ..A.SHR       519  2008-03-06 13:28  softhy.net\C#_IM\IM\LanMsg\controls\vssver2.scc

     文件      78206  2006-11-14 19:53  softhy.net\C#_IM\IM\LanMsg\Emotions\100.gif

............此处省略405个文件信息

评论

共有 条评论