标题:请问client类型在哪个文件里面啊?
只看楼主
_Sa
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-3-14
 问题点数:0 回复次数:3 
请问client类型在哪个文件里面啊?

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Threading;
using System.Security.Cryptography;

NetworkStream stream = Client.GetStream();

结果编译错误 : The name 'Client' does not exist in the current context

搜索更多相关主题的帖子: using System client 类型 文件 
2007-03-30 21:16
jacklee
Rank: 7Rank: 7Rank: 7
来 自:XAplus
等 级:贵宾
威 望:32
帖 子:1769
专家分:104
注 册:2006-11-3
得分:0 
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Threading;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Text;
using System.Data.SqlClient;
这样能做哦。你的有不有?

XAplus!
讨论群:51090447
删吧删吧,把我的号给删了!
2007-03-31 08:04
_Sa
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-3-14
得分:0 

还是不行的啊,我的部分代码如下 :
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Threading;

namespace SMTP_Custom
{
partial class Form1 : Form
{
//默认端口为 25 :
public Form1()
{
InitializeComponent();
textBox1.Text = "smtp.263.net";
textBox2.Text = "25";
textBox3.Text = "(试验邮件)";
}

//Main()
[STAThread]
static void Main()
{
Application.Run(new Form());
}

//Send()
private void send()
{
string come = null;
string check = null;
NetworkStream stream = client.GetStream();
string hostName = Dns.GetHostName();
WriteToNetStream(ref stream, "HElO" + hostName);
come = ReadFromNetStream(ref stream);
//......

2007-03-31 11:42
jacklee
Rank: 7Rank: 7Rank: 7
来 自:XAplus
等 级:贵宾
威 望:32
帖 子:1769
专家分:104
注 册:2006-11-3
得分:0 
你 在BAIDU里输入 这个 :Client.GetStream();
好大一堆答案哦。

XAplus!
讨论群:51090447
删吧删吧,把我的号给删了!
2007-03-31 12:24



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-128206-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.307653 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved