CuteChat Reference

Last post 11-24-2004, 2:43 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  11-24-2004, 12:36 PM 2551

    CuteChat Reference

    My project doesn`t have the cutechat Reference: there are some errors in the pages.  the letters in red are the errors and the classes (SqlDataProvider and UserInfo) that i don't have, how can i do to get the cutechat reference?

    namespace CuteChatSample

    {

    using System;

    using System.Collections;

    using System.Data;

    using System.Data.SqlClient;

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    CuteChatSample

    {

    using System;

    using System.Collections;

    using System.Data;

    using System.Data.SqlClient;

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    using System;

    using System.Collections;

    using System.Data;

    using System.Data.SqlClient;

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    using System.Collections;

    using System.Data;

    using System.Data.SqlClient;

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    using System.Data;

    using System.Data.SqlClient;

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    using System.Data.SqlClient;

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    publicclass MySqlDataProvider : CuteChat.SqlServer.SqlDataProvider

    {

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    public MySqlDataProvider(string connstr):base(connstr)

    {

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    publicoverrideCuteChat.UserInfoData GetUserInfo(string useruniquename)

    {

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    using(SqlCommand cmd=CreateCommand())

    {

    cmd.CommandText="select DisplayName from SampleUsers where LoginName=@ln";

    cmd.Parameters.Add("@ln",SqlDbType.NVarChar,20).Value=useruniquename;

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    string dispname=Convert.ToString(cmd.ExecuteScalar());

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

    returnnew CuteChat.UserInfoData(useruniquename,dispname,SiteConfig.IsAdmin(useruniquename));

    }

    }

  •  11-24-2004, 2:43 PM 2554 in reply to 2551

    Re: CuteChat Reference

        I think you should add the reference - CuteChat.dll to your project before compiling this code.
    Regards , Terry .
View as RSS news feed in XML