RemotingObject对象中需要使用配置文件变量时怎么处理?
解决方案 »
- .net如何调用windowsXP的摄像头拍照功能?
- ViewState查看器!
- 怎么才能选中datagridview 中的checkbox????
- C#中这样的按钮怎么写??
- 在C#中什么是事件,方法,属性和事件什么关系,事件是不是也是一个类的定义啊?而且被微软定义并隐藏起来了啊
- 关于sql语句中语法错误的困扰?
- 有关异常问题
- 本人自认为也是一个VS6.0的忠实使用者,最近看了几本vb.net、c#的书,自认为也了解了vs7.0的精髓,所以动了念头想把以前的一些程序在vs 7.0中重写一遍,
- 大神 你在哪里 gridcontrol RowCellClick事件问题
- WPF 怎么通过 button的Click事件传递参数到后台处理
- 怎样用正则表达式删除<script></script>之间的网页代码?
- 求用C#连接Oracle数据库的连接字符串,急
public string link()
{
string IPstr = "";
string filePath = Application.StartupPath + "\\IP.ini";
IniFile dbini = new IniFile(filePath);
IPstr = dbini.IniReadValue("IP", "ip");
IPstr = IPstr + "/BroadCastMessage.soap";
//textBox1.Text=IPstr;
BinaryServerFormatterSinkProvider serverProvider = new BinaryServerFormatterSinkProvider();
BinaryClientFormatterSinkProvider clientProvider = new BinaryClientFormatterSinkProvider();
serverProvider.TypeFilterLevel = TypeFilterLevel.Full; IDictionary props = new Hashtable();
props["port"] = 0;
props["name"] = "ClientHttp";
HttpChannel channel = new HttpChannel(props, clientProvider, serverProvider);
ChannelServices.RegisterChannel(channel,false);
return IPstr; }
读取IP.ini文件就好了不知道对你有用吗