• λ我爱Aspx >> Asp.Net >> Microsoft .NET Remoting:技术概述
  • Microsoft .NET Remoting:技术概述

  • :未知  Դ:internet  :2007-5-5 19:51:00  ؼ:.net
  • using System; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels.HTTP; namespace RemotingSamples { public class Client { public static int Main(string [] args) { HTTPChannel chan = new HTTPChannel(); ChannelServices.RegisterChannel(chan); ForwardMe param = new ForwardMe(); HelloServer obj = (HelloServer)Activator.GetObject( typeof(RemotingSamples.HelloServer), "http://localhost:8085/SayHello"); if (obj == null) System.Console.WriteLine("无法定位服务器"); else { Console.WriteLine("值为 " + param.getValue()); ForwardMe after = obj.HelloMethod(param); Console.WriteLine("呼叫后的值为 " + after.getValue()); } return 0; } } } 下面是 makefileall: server.exe client.exe share.dll share.dll: share.cs csc /debug+ /target:library /out:share.dll share.cs server.exe: server.cs csc /debug+ /r:share.dll /r:System.Runtime.Remoting.dll server.cs client.exe: client.cs server.exe csc /debug+ /r:share.dll /r:server.exe /r:System.Runtime.Remoting.dll client.cs clean: @del server.exe client.exe *.pdb *~ *.*~
    回到顶部


    请以 IE4.0 以上版本 800 * 600 浏览本站

    ©2001 Microsoft Corporation 版权所有。保留所有权利。使用规定。

    Ҷƪл˵?
  • һƪDirectX 8.0 简介
    һƪ简单JSP语法