
C#
文章平均质量分 79
yuhan_9204
这个作者很懒,什么都没留下…
展开
-
编写C#程序 1-23
1. 建立控制台应用程序后 #region /定义止跌区域,方便查看 预处理命令using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;#endregion namespace ConsoleApplic原创 2015-04-25 16:34:14 · 717 阅读 · 0 评论 -
C#反射
1.C# 利用反射动态创建对象Activator.CreateInstance(Type.GetType("你的类名"))反射动态创建对象:如果A与执行代码同一个程序集.则可以这样调用System.Reflection.Assembly.GetExecutingAssembly().CreateInstance("命名空间.类名", false);如:obj转载 2015-05-06 15:23:53 · 580 阅读 · 0 评论 -
C# 调用C++dll
1. C++ win32项目 dll 空项目 添加CPPDemo.cpp extern "C" __declspec(dllexport) int Add(int x, int y) { return x + y; } extern "C" __declspec(dllexport) int Sub(int x, int原创 2015-05-06 21:21:57 · 254 阅读 · 0 评论 -
应用程序域(.Net Remoting学习一) 分类: 分布式开发
引言在互联网日渐普及,网络传输速度不断提高的情况下,分布式的应用程序是软件开发的一个重要方向。在.Net中,我们可以通过Web Service 或者Remoting 技术构建分布式应用程序(除此还有新一代的WCF,Windows Communication Foundation)。本文将简单介绍Remoting的一些基本概念,包括 应用程序域、Remoting构架、传值封送(Marshal转载 2015-05-06 15:05:46 · 361 阅读 · 0 评论